12.07.2015 Views

GNU Octave - Local Sector 7 web page

GNU Octave - Local Sector 7 web page

GNU Octave - Local Sector 7 web page

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

236 <strong>GNU</strong> <strong>Octave</strong>octave:1> sys = fir2sys([1 -1 2 4],0.342,\> "A/D input","filter output");octave:2> sysout(sys)Input(s)1: A/D inputOutput(s):1: filter output (discrete)Sampling interval: 0.342transfer function form:1*z^3 - 1*z^2 + 2*z^1 + 4-------------------------1*z^3 + 0*z^2 + 0*z^1 + 0[c, tsam, input, output] = sys2fir (sys)Function FileExtract fir data from system data structure; see fir2sys for parameter descriptions.29.2.2 State space system interface functionsss (a, b, c, d, tsam, n, nz, stname, inname, outname, outlist)Function FileCreate system structure from state-space data. May be continous, discrete, or mixed(sampled data)Inputsabcdtsamnnzstnameinnameoutnameusual state space matrices.default: d = zero matrixsampling rate. Default: tsam = 0 (continuous system)number of continuous, discrete states in the systemIf tsam is 0, n = rows(a), nz = 0.If tsam is greater than zero, n = 0, nz = rows(a)see below for system partitioningcell array of strings of state signal namesdefault (stname=[] on input): x_n for continuous states, xd_n for discretestatescell array of strings of input signal namesdefault (inname = [] on input): u_ncell array of strings of input signal namesdefault (outname = [] on input): y_n

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!