I have created a Level-2 MATLAB file S-function. I have two inputs. One of the inputs is a vector and the other input is a matrix. I use the following code to initialize the dimensions of my inputs:
block.SetPreCompInpPortInfoToDynamic;
By doing this, I receive the following error: ERROR: Error in port widths or dimensions.
Best Answer