<< phasemag Frequency Domain repfreq >>

Scilab Help >> Control Systems - CACSD > Linear Analysis > Frequency Domain > phaseplot

phaseplot

frequency phase plot

Syntax

phaseplot(sl)
phaseplot(sl, fmin, fmax)
phaseplot(sl, fmin, fmax, step)
phaseplot(frq, db, phi)
phaseplot(frq, repf)
phaseplot(.., comments)

Arguments

sl

A siso or simo linear dynamical system, in state space, transfer function or zpk representations, in continuous or discrete time.

fmin

real scalar: the minimum frequency (in Hz) to be represented.

fmax

real scalar: the maximum frequency (in Hz) to be represented.

step

real scalar: the frequency discretization step (logarithmic scale)). If it is not specified the algorithm uses adaptative frequency steps.

comments

a character string vector: the legend label to be associated with each curve. Optional value is the empty array.

frq

a row vector or an n x m array: The frequency discretization in Hz.

db

an n x m array: the magnitudes corresponding to frq. This argument is not used, it only appears to make phaseplot have the same syntax as gainplot and bode.

phi

an n x m array: the phases in degree corresponding to frq. The phaseplot function plots the curves phi(i,:) versus frq(i,:)

repf

an n x m complex array. The phaseplot function plots the curves phase(repf(i,:)) versus frq(i,:)

Description

This function draws the phase of the frequency response of a system. The system can be given under different representations:

The datatips tool may be used to display data along the phase curves.

Examples

s=poly(0,'s')
h1=syslin('c',(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01))
h2=syslin('c',(s^2+2*0.1*15.1*s+228.01)/(s^2+2*0.9*15*s+225))
clf();phaseplot([h1;h2],0.01,100,..
                   ["$\frac{s^2+18 s+100}{s^2+6.06 s+102.1}$";
                    "$\frac{s^2+3.02 s+228.01}{s^2+27 s+225}$"])
title('Phaseplot')

See also

History

VersionDescription
5.4.0 Function phaseplot introduced.
6.0 handling zpk representation.

Report an issue
<< phasemag Frequency Domain repfreq >>