How to create an expression for a set of inputs?

时间:2018-06-04 17:32:48

标签: matlab signal-processing

If I have the x as input for my discrete signal and I don't want to represent it as a vector, how can I transform it into an expression which gives me the same discrete signal?

n = -6:6
x = [0 0 4 3 2 1 0 -1 -2 -3 -4 0 0];
subplot(2,1,1);
stem(n,x);

image

1 个答案:

答案 0 :(得分:0)

适合您的离散信号的可能表达式是无限的,所以没有明确的答案是可能的。你问题的目的是什么?如果您只想要一条平滑线,请寻找样条插值。如果是关于傅里叶系列的作业,请寻找傅里叶系列。