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

c++ - Function signature as a function template parameter -

How to call a javascript function after the page loads with a chrome extension? -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -