Sawtooth Waveform With Variable Frequency and constant amplitude

9 ビュー (過去 30 日間)
Ranjit Kumar Chennamchetty
Ranjit Kumar Chennamchetty 2019 年 10 月 21 日
編集済み: Ranjit Kumar Chennamchetty 2019 年 10 月 23 日
How can I create a sawtooth wave with external inputs such as constant amplitude (2*Pi) and variable frequency in simulink?

回答 (1 件)

ABHILASH SINGH
ABHILASH SINGH 2019 年 10 月 21 日
T = 10*(1/50);
fs = 1000;
t = 0:1/fs:T-1/fs;
a=2*pi;
x = a*sawtooth(2*pi*50*t,1/2);
plot(t,x)
  1 件のコメント
Ranjit Kumar Chennamchetty
Ranjit Kumar Chennamchetty 2019 年 10 月 21 日
編集済み: Ranjit Kumar Chennamchetty 2019 年 10 月 23 日
Can you make simulink customized block for this code.
Basicaaly I want to generate the sawtooth using functional blocks in simulink with variable freqeuncy using delay and mod function. By not using waveform generator**** ( my model frequency is depends on the speedcmd- Speed command ranges from0 to 450 Dec Val )

サインインしてコメントする。

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by