i am getting an answer shown below while running MODEparam.m file. can anyone solve this
??? Error using ==> CostFunction> myfile at 74
The specified M-File 'myfile' in myfile/S-Function' is not a valid Level
1 S-Function. The number of input and/or output arguments is not valid. A likely cause for
this error is that the name of a level-2 M-file S-function has been specified in this block
(which supports only level-1 M-file S-functions). Use the 'Level-2 M-file S-Function' block
from the Simulink library.
Error in ==> CostFunction at 33
Error in ==> MODE at 73
JxParent = mop(Parent,MODEDat);
Error in ==> MODEparam at 85
OUT=MODE(MODEDat); % Run the algorithm.