www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/ExampleDisplayComplexValuedInputSignalExample.m

    %% Display Complex-Valued Input Signal  
% At the MATLAB(R) command prompt, type <matlab:ex_timescope_complexinp
% ex_timescope_complexinp> to open the example model. The following Simulink(R)
% model appears.  
%
% <<../timescope_example1_model_cx.png>>  
%
%% 
% By default, when the input is a complex-valued signal, Time Scope plots
% the real and imaginary portions on the same axes. These real and imaginary
% portions appear as different-colored lines on the same axes within the
% same active display. Run your model to see the time domain output, as
% shown in the following figure.  
%
% <<../scopes_cxrealimag.png>>   
%
%% 
% The Configuration Properties dialog box controls the visual configuration
% settings of the Scope displays. From the Scope menu, select *View* > *Configuration
% Properties* to open this dialog box. Go to the Display tab. Selecting
% the *Plot signal(s) as magnitude and phase* check box specifies the Scope
% to plot the magnitude and phase of the input signal. The magnitude and
% phase appear on two separate axes within the same active display. After
% you select this check box, click *OK*. The active display shows the magnitude
% of the input signal on the top axes. The signal phase, in degrees, appears
% on the bottom axes.
%
% <<../scopes_cxmagphase.png>>    
%