MATLAB: Initial condition estimation using tfest

initial conditionsystem identificationSystem Identification Toolboxtfesttransfer function estimation

Hi,
I am trying to find initial condition information using tfest estimation. However, once I use "[sys_tf,ic] = tfest(data,np,nz);" I will get the error:
Error using tfest
Too many output arguments.
I cannot find the problem. I appreciate if anyone can help.

Best Answer

The output parameter for tfest function is sys till R202a and from R202b it has sys and ic as its output parameters.This difference in output arguments is causing the error. To fix it , upgrade to MATLAB latest version. Refer to below link to upgrade MATLAB
Refer to below help document links of tfest function in R2020a and R2020b versions for better understanding