How to fix the time values of repeating sequence to get triangular wave?
Show older comments
Hello everyone,
I need to make a triangular wave of amplitude 1.0 using repeating sequence block. Base frequency for my simulation is 50 Hz and Carrier freuency is 5000Hz. I do not know how to fix the time values. If I fix the time values [0, 1/(2*5000*1000) , 1/(5000*1000)] as in the attached figure, then what does that mean? Is 5000 for carrier frequency? If yes, then what denotes the value, 1000?
Can anyone please let me know about the setting of time values using repeating sequence?
Thanks in advance.
Accepted Answer
More Answers (1)
Jon
on 12 Feb 2020
0 votes
If you want to make a triangular wave of amplitude A with period T just use
Time Values [0 T]
Output Values [0 A]
You don't have to worry about the frequency of your simulation.
1 Comment
Skyscrapper
on 12 Feb 2020
Edited: Skyscrapper
on 12 Feb 2020
Categories
Find more on Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!