MATLAB Function takes [4×1] signal as parameter, but in debug shows as [3×1]. Workaround/fix?
The context here is I am using a MATLAB function which takes a parameter y (x_est) which is shown to be a [4×1] signal above. When ‘make model’ is clicked it gives the error below:
On inspection of the diagnostic report:
This shows that the [4×1] signal (which is initialised as [4×1] by an integrator block) is being interpreted as [3×1]. I am clueless as to why.The context here is I am using a MATLAB function which takes a parameter y (x_est) which is shown to be a [4×1] signal above. When ‘make model’ is clicked it gives the error below:
On inspection of the diagnostic report:
This shows that the [4×1] signal (which is initialised as [4×1] by an integrator block) is being interpreted as [3×1]. I am clueless as to why. The context here is I am using a MATLAB function which takes a parameter y (x_est) which is shown to be a [4×1] signal above. When ‘make model’ is clicked it gives the error below:
On inspection of the diagnostic report:
This shows that the [4×1] signal (which is initialised as [4×1] by an integrator block) is being interpreted as [3×1]. I am clueless as to why. simulink, matlab function MATLAB Answers — New Questions