Signal sine wave ??
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi
how can i generate the signal sine wave with a variable frerquency, i need to use the function matlab with Clock for the time. ??
Thnks
1 Kommentar
Adam Danz
am 29 Jul. 2019
https://www.mathworks.com/matlabcentral/answers/157727-generating-a-6-second-sine-wave#answer_154276
Not sure how you'd like to implement clock(), though.
Antworten (1)
Fangjun Jiang
am 29 Jul. 2019
If there is no constrain, you could multiple the Clock with 2*pi*f, where f is your frequency and then feed it to an "Interpreted MATLAB Fcn" block where you specify it as "sin" or "sin(u)". You could implement "f" as a constant, or a parameter or an Inport.
2 Kommentare
Siehe auch
Kategorien
Mehr zu Sources finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!