MATLAB Answers

0

Sawtooth Waveform With Variable Frequency and constant amplitude

Asked by Ranjit Kumar Chennamchetty on 21 Oct 2019 at 15:14
Latest activity Edited by Ranjit Kumar Chennamchetty on 23 Oct 2019 at 21:57
How can I create a sawtooth wave with external inputs such as constant amplitude (2*Pi) and variable frequency in simulink?

  0 Comments

Sign in to comment.

1 Answer

Answer by ABHILASH SINGH on 21 Oct 2019 at 15: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 Comment

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 )

Sign in to comment.