Time domain Vector problem

1 view (last 30 days)
D
D on 23 May 2014
Commented: Roger Wohlwend on 23 May 2014
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
Azzi Abdelmalek
Azzi Abdelmalek on 23 May 2014
What is the values of t? What are the values of p for t<0?
Roger Wohlwend
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.

Sign in to comment.

Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!