I would be grateful for any suggestion or help
There is no block shipped with Simulink to directly do that. You need to implement the equation y = sin(w*t + phi) using basic blocks like sum, product and trigo.
Guy
The Clock block (look in the Sources section of the library browser) can provide you the simulation time.
http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/clock.html
http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/digitalclock.html
Using Simulink
I have a same task as you had about changing input frequency dynamically during simulation is running. I am feeding sine wave input to a plant and every time i get the output the minmax value of the plant I want the input frequency to change (Freq increase/decrease) and in my case I have to change the frequency from 1Hz to 1KHz and the simulation has to continues untill I have the output for all the frequencies.
Kindly let me know if there any way to do this or an example available please send me. I will be very glad to know this.
Thanking you,
With best regards,
Prashant
"satya mishra" wrote in message <hrsrsk$ldb$1...@fred.mathworks.com>...