Time domain Vector problem
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Roger Wohlwend
2014 年 5 月 23 日
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.
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!