MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by V Vaishnavi Kumar
on 30 Dec 2012

I generated sawtooth waveform from signal generator and repeating sequence, but for a frequency such as 8 Hz, the wave shape is irregular, and for frequencies such as kHz, the waveform is not a periodic one itself.

how high frequency sawtooth can be created ?

Answer by Azzi Abdelmalek
on 30 Dec 2012

Edited by Azzi Abdelmalek
on 30 Dec 2012

Accepted answer

I think you have to decrease your fixed step, for 8 Hz set your step time to (1/8)/30, if f is your higher frequency, choose (1/f)/30

V Vaishnavi Kumar
on 30 Dec 2012

k,hope i have to set a fixed step solver in configuration parameters to the whole model...? or by any other way

Answer by V Vaishnavi Kumar
on 1 Jan 2013

For using variable step solver, increase refine factor in Data Import/Export pane in Configuration parameters

## 0 Comments