how to print only a subset

2 ビュー (過去 30 日間)
dav
dav 2014 年 5 月 8 日
Hello
Following code gives a big output. All I wanna do is to print just the values na and nb
Is there a way I can do it please?
code:
% Create an ARX model for generaing data:
A = [1 -1.5 0.7]; B = [0 1 0.5];
m0 = idpoly(A,B);
% Generate a random input signal:
u = iddata([],idinput(400,'rbs'));
e = iddata([],0.1*randn(400,1));
% Simulate the output signal from the model m0:
y = sim(m0, [u e]);
z = [y,u]; % analysis data
NN = struc(1:5,1:5,1);
V = arxstruc(z(1:200),z(201:400),NN);
nn = selstruc(V,0);
m = arx(z,nn);
output:
Discrete-time ARX model: A(z)y(t) = B(z)u(t) + e(t)
A(z) = 1 - 1.495 z^-1 + 0.6957 z^-2
B(z) = 1.001 z^-1 + 0.5032 z^-2
Sample time: 1 seconds
Parameterization:
Polynomial orders: na=2 nb=2 nk=1
Number of free coefficients: 4
Use "polydata", "getpvec", "getcov" for parameters and their uncertainties.
Status:
Estimated using ARX on time domain data "z".
Fit to estimation data: 97.7% (prediction focus)
FPE: 0.009155, MSE: 0.008998
>> aaaa
>> m
m =
Discrete-time ARX model: A(z)y(t) = B(z)u(t) + e(t)
A(z) = 1 - 1.594 z^-1 + 0.8409 z^-2 - 0.0653 z^-3
B(z) = 1.001 z^-1 + 0.4118 z^-2 - 0.04818 z^-3
Sample time: 1 seconds
Parameterization:
Polynomial orders: na=3 nb=3 nk=1
Number of free coefficients: 6
Use "polydata", "getpvec", "getcov" for parameters and their uncertainties.
Status:
Estimated using ARX on time domain data "z".
Fit to estimation data: 97.82% (prediction focus)
FPE: 0.01091, MSE: 0.01062

回答 (0 件)

カテゴリ

Help Center および File ExchangeNonlinear ARX Models についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by