mexErrMsgTxt("The second input argument (QQ) must be a real matrix!");
DYN_MEX_FUNC_ERR_MSG_TXT("kalman_steady_state: The second input argument (QQ) must be a real matrix!");
}
if(q!=n)
{
mexErrMsgTxt("The size of the second input argument (QQ) must match the size of the first argument (T)!");
DYN_MEX_FUNC_ERR_MSG_TXT("kalman_steady_state: The size of the second input argument (QQ) must match the size of the first argument (T)!");
}
mwSizep=mxGetN(prhs[2]);
if(mxGetM(prhs[2])!=n)
{
mexErrMsgTxt("The number of rows of the third argument (Z) must match the number of rows of the first argument (T)!");
DYN_MEX_FUNC_ERR_MSG_TXT("kalman_steady_state: The number of rows of the third argument (Z) must match the number of rows of the first argument (T)!");
mexErrMsgTxt("The third input argument (Z) must be a real matrix!");
DYN_MEX_FUNC_ERR_MSG_TXT("kalman_steady_state: The third input argument (Z) must be a real matrix!");
}
if(measurement_error_flag)
{
if(mxGetM(prhs[3])!=mxGetN(prhs[3]))
{
mexErrMsgTxt("The fourth input argument (H) must be a square matrix!");
DYN_MEX_FUNC_ERR_MSG_TXT("kalman_steady_state: The fourth input argument (H) must be a square matrix!");
}
if(mxGetM(prhs[3])!=p)
{
mexErrMsgTxt("The number of rows of the fourth input argument (H) must match the number of rows of the third input argument!");
DYN_MEX_FUNC_ERR_MSG_TXT("kalman_steady_state: The number of rows of the fourth input argument (H) must match the number of rows of the third input argument!");