- First, you want to generate the time signal "t". To do this, you can use a Clock block, which outputs the simulation time.
- Next, you can multiply that signal by frequency "Omega" and add phase "phi" to it.
- Then, input that signal into a Trigonometric Function block configured with the sin function.
- Finally, take that whole output and multiply it by your amplitude signal "V_out".
adding Sin into simulation
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Henry Buck
am 17 Sep. 2015
Kommentiert: Henry Buck
am 28 Sep. 2015
Hi,
I have voltage output signal(DC) and I want to add a sinwave into it. for exmple: If V_out=200v I want to change it in format: V_out*sin(Omega*t+phi), which Omega= 100*pi and phi=0.
How to addV_out if it changeevery monent ?
How to add sine block with that parameters ?
Thanks, Henry
0 Kommentare
Akzeptierte Antwort
Sebastian Castro
am 18 Sep. 2015
Indeed, the Sine Wave block assumes constant amplitude, phase, and frequency. In your case, you want the amplitude to vary which means you should use fundamental blocks as follows:
- Sebastian
2 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!