how to generate ramp signals at different sampling frequencies.

3 ビュー (過去 30 日間)
kanchana katta
kanchana katta 2022 年 1 月 25 日
回答済み: Voss 2022 年 1 月 25 日
how to generate ramp signals at different sampling frequencies.

回答 (1 件)

Voss
Voss 2022 年 1 月 25 日
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')

カテゴリ

Help Center および File ExchangeWaveform Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by