how to generate ramp signals at different sampling frequencies.

7 visualizaciones (últimos 30 días)
kanchana katta
kanchana katta el 25 de En. de 2022
Respondida: Voss el 25 de En. de 2022
how to generate ramp signals at different sampling frequencies.

Respuestas (1)

Voss
Voss el 25 de En. de 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!

Translated by