Time domain Vector problem
1 view (last 30 days)
Show older comments
hi ,
i wish to preform the follwing :
m(t)=a(0)*p(t)+a(1)*p(t-T)+a(2)*p(t-2T)+...
where :
a(n)=[1 -1 1 -1 ] %randomize -1 or 1
p(t)=[1.2 ....] %Raised cosine filter with 1X8001
T=1e-3;
how can I time shift p(t) ?
2 Comments
Roger Wohlwend
on 23 May 2014
I see several problems. (1) You cannot define a vector a(n) = [1 -1 1 -1]. Wrong sytax. Instead write a = [1 -1 1 -1]. (2) The same is true for vector p. Write p = [...] and not p(t) = [...]. (3) If you want a certain element of a vector, your index must be an non-negative integer. If you want the first element of vector a, you have to write a(1) and NOT a(0) as you did in the first line of code. (4) p(t-2T) is wrong syntax. Correct is: p(t-2*T)
Concering your question: What do you mean with time shifting p? You already do it in your first equation.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!