how to generate ramp signals at different sampling frequencies.
3 views (last 30 days)
Show older comments
how to generate ramp signals at different sampling frequencies.
0 Comments
Answers (1)
_
on 25 Jan 2022
fs1 = 10; % sampling frequency 10 Hz (very low, so the individual samples can be seen in the plot)
t1 = -1:1/fs1:1;
r1 = t1.*(t1 >= 0);
fs2 = 5; % sampling frequency 5 Hz
t2 = -1:1/fs2:1;
r2 = t2.*(t2 >= 0);
figure
plot(t1,r1,'o',t2,r2,'x')
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!