User`s guide

Loading a File into PC-MATLAB
1. To load FREQRESP.MAT, start the PC-MATLAB program and type:
load a:FREQRESP.MAT
2. To get a list of the variables that were loaded, type:
who
To get a list of the variables including size and whether it is complex, type:
whos
To see the X-axis values of data converted with the x option, type:
o2i1x
To see the Y-axis values, type:
o2i1
3. To plot X and Y values on the screen (real data), type:
plot(o2i1x,o2i1)
To plot X and Y values on the screen (imaginary data), type:
plot(o2i1x,imag(o2i1))
To display dB on Y-axis:
plot(o2i1x,20.*log10(abs(o2i1)))
To display phase on Y-axis:
plot(o2i1x,atan2(imag(o2i1),real(o2i1)))
or
plot(o2i1x,angle(o2i1))
angle() is an M-file in MATLAB TOOLBOX
To display unwrapped phase on Y-axis:
plot(o2i1x,unwrap(o2i1)) unwrap() is an M-file in MATLAB TOOLBOX
4. To send screen plots to an HP-GL plotter:
After plotting on the screen, from inside PCMATLAB, type:
meta FREQRESP (creates file FREQRESP.MET)
From MS-DOS, type:
gpp FREQRESP /dhpgl (creates HPGL plot file)
SDF to PC-MATLAB and MATRIXx examples
HP 3563A to MATRIXx or PC-MATLAB file formats
A-3