cyclic prefix matlab code

Status
Not open for further replies.

army123

Newbie level 4
Joined
Sep 21, 2012
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,318
x=[1 2 3 4]
h=[1 2]

can anyone write code in matlab for x+CP(cyclic prefix) linearly convolved with h
 

x = [1 2 3 4];
h = [1 2];
cp = x(4); % as length(h) = 2
x_with_cp = [x(4) x]; % cp addition
y = conv(x,h);
y_witout_cp = y(2:5);
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…