www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/DisplayInputSignalofChangingSizeExample.m
%% Display Input Signal of Changing Size %% % At the MATLAB(R) command prompt, type <matlab:ex_timescope_varsize ex_timescope_varsize> % to open the example model. The following Simulink(R) model appears. % % <<../timescope_example2_model_var.png>> % %% % In this example, the size of the input signal to the Time Scope block % changes as the simulation progresses. When the simulation time is less % than 5 seconds, Time Scope plots the signal connected to the third input % port of the Switch block, which has signal dimensions 1 by 2. After 5 % seconds, Time Scope plots the signal connected to the first input port % of the Switch block, which has signal dimensions 1 by 3. Run your model % to see the time domain output. % % <<../timescope_example2_display_var.png>> % % As you can see in the figure, the third line on the display, colored red, % appears only after 5 seconds.