Generating Triangular wave in simulink
103 views (last 30 days)
Azzi Abdelmalek on 8 Oct 2012
generate your signal in matlab command then use a from workspace block with variable name ty
More Answers (3)
Julien on 7 Oct 2012
Edited: Julien on 7 Oct 2012
Hi, the triangle generator does not exist but you can create your own.
My tip is to create a pulse signal (pulse width =50%) and adding a negative offset (typically the half of the amplitude you want).
If you want a triangle signal between [0 1] then you have to set:
pulse amplitude : 4 offset : -2
Then you have a pulse varying between [-2 2] You just have to integrate this signal and you will get a nice triangle signal varying between [0 1] ;)
Julien on 8 Oct 2012