Simulink wavegenartor gives not smoth sine wave
23 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
tomer polsky
am 7 Mai 2021
Kommentiert: Dylan
am 28 Apr. 2025
I want to seee a sine wave on the scope of the simulink but it does not work ,meaning the wave is not smooth . how to fix it ?
0 Kommentare
Akzeptierte Antwort
Sriram Tadavarty
am 7 Mai 2021
Hi Tomer,
To get a smooth waveform, try to have more samples within the one cycle of sine waveform. Changing the number of samples within a cycle implies changing the sample time.
You can try changing the Sample time value in the Signal Attributes tab of Waveform Generator block, to have a smooth waveform. The Signal Attributes tab lies side to the Main tab of Waveform Generator mask.
You can set the Sample time to 1/5000 and observe the smooth waveform for the sin(2,1000,0).
Hope this helps,
Sriram
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spectral Analysis 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!