MATLAB Examples

Vary Phase Of Signal During Simulation

Use the docid:simrf_ref.bveln7s-1 block to shift the phase of a sine wave to 180 degrees.Use Repeating Sequence Stair block as a Simulink control signal to control the phase of the signal. To see the variation in phase to 180 degrees, first open and run the model. During simulation, change the value of the Simulink control signal to 90 degrees and see a change in phase in the Output Scope.