MATLAB: OBSERVING SIGNAL GENERATOR OUTPUT AT HIGH FREQUENCY IN SIMULINK

signal generator output at high frequency in simulink

Hi, In simulink,when i use signal generator at low frequency(egs:1 rad/sec) and observe the sine wave in a scope,my output is correct.But when the frequency is increased(egs:10 rasd/sec),the output is not correct.why is it so?Can somebody help me.

Best Answer

Hi,
My guess is that you forget to change your simulation parameters.
In the toolbar :
Simulation -> Model Configuration Parameters.
change the solver to fixed-step, and put a small sample time to force Simulink to simulate at a desired rate.
Related Question