MATLAB: During the simulation following error is occured ” the number of defined parameters, 11, does not match the number of parameters on the dialog which is 10″how can i remove this error

MATLABs-function

For S-function 'sfun_spssw_discc', the number of defined parameters, 11, does not match the number of parameters on the dialog of 'Power_PMSM_Drive_Diagram_complete/powergui/EquivalentModel1/State-Space', 10. These two values must be identical.

Best Answer

It sounds like you defined 11 parameters in the s-function and only put 10 in the dialog. You need to look at the s-function to determine which parameter you are missing and make sure you input your parameters in the right order.