setting the x-axis when plotting convolution in matlab -


i plotting convolution in matlab purpose create 2 arrays representing values of functions in various points.

x=[1:1000]; c=[1:1000]; t = linspace(-18,18,1000); k=1:1000, x(k)=input(t(k)); c(k)=h(t(k)); end;  plot(conv(c,x)); 

the thing plots conv against place of answer in array. want plot conv against 'n' give value. plotting against t,c or x example above not give righ answer. plot here of length 1999. creating linspace of length 1999 plot wont give right answer.

any suggestions?


Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -