![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172124/image.jpeg)
is it possible to give different frequencies input for different time span in simulink ?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
is it possible to give different frequencies for different timespan in simulink ?
for example my input is F(t) = cos(w*t)
i am simulating for t = 30 secs
for first time span t1 = 0:10 secs my input signal frequency is cos (10*t1)
for first time span t2 = 10:20 secs my input signal frequency is cos (20*t2)
for first time span t3 = 20:30 secs my input signal frequency is cos (30*t3)
how should i do this is Simulink ?
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 12 Feb 2013
Modificato: Azzi Abdelmalek
il 13 Feb 2013
You can use a multiport switch block with three sine wave block
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172124/image.jpeg)
set stop time to 29.99
7 Commenti
Azzi Abdelmalek
il 13 Feb 2013
Modificato: Azzi Abdelmalek
il 13 Feb 2013
gain=0.2
stoptime=14.99
Try to figure it out
- When control port input is between 1 and 1.9999 port 1 passes
- When control port input is between 2 and 2.9999 port 2 passes
- and so on
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!