From: Fatima on
hello

i'm trying to simulate signals with nlarx model using standard and custom regressors, and i use "compare", to shw the fit between original and estimated signal, using this code:
y=iddata(x,[],0.05);
m = nlarx(y, [8]);
R = polyreg(m,'MaxPower',2,'CrossTerm','on');
m = addreg(m,R);
m=nlarx(y,m) ;
n=getreg(m);
figure,compare(y,m,1)
figure,plot(y);

the problem is that i want to get the estimated signal y as a vector, but by using nlarx, i get an iddata.

thanks