필터 지우기
필터 지우기

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 CenterFile Exchange에서 Nonlinear ARX Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by