How to generate Sine and triangle wave using HDL blockset?
9 views (last 30 days)
Show older comments
Pravin Kokane
on 14 Dec 2017
Commented: Bharath Venkataraman
on 27 Jun 2022
I need to generate Sine and triangle wave using HDL blockset only. As direct waveform generator is not available in HDL blocks. Can you please suggest how to generate Sine wave and Triangle wave in which I can change Frequency and phase of waveform.
2 Comments
Accepted Answer
Bharath Venkataraman
on 14 Dec 2017
The sawtooth can either be from a RAM (if you need it to be really simple), or with adders/subtractors and some logic for picking either increment/decrement.
More Answers (0)
See Also
Categories
Find more on HDL Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!