how to generate ramp signals at different sampling frequencies.

3 views (last 30 days)
kanchana  katta
kanchana katta on 25 Jan 2022
Answered: _ on 25 Jan 2022
how to generate ramp signals at different sampling frequencies.

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')

Community Treasure Hunt

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

Start Hunting!