If you did
>>e=resid(model,data);
then all you do to get the residuals as a vector is
>>resid_vector=e.y;
In general to access idatada signal just do
>>data.u
>>data.y
See doc iddata for more details.
HTH. Arkadiy
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!