I can't make this signal as like periodic signal
1 view (last 30 days)
Show older comments
Hi. I made a signal as like sawtooth
T0=2;
f0=1/T0;
t=[-2:0.001:2];
x_m=heaviside(t)-heaviside(t-T0/2);
x=t.*x_m;
I want to make these signal as periodic signal.
I did every solution, that I can do. But I can't make it.
Please help. Thank you.
0 Comments
Accepted Answer
Azzi Abdelmalek
on 12 Dec 2014
T0=2; % The period
Ts=0.001 % The sample time
t=0:Ts:T0
x_m=heaviside(t)-heaviside(t-T0/2);
plot(t,x_m,'r') % plot in one period
n=10 % number of periods
y=repmat(x_m,1,n);
t=0:Ts:(numel(y)-1)*Ts
plot(t,y,'r')
xlim([min(t) max(t)])
More Answers (0)
See Also
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!