i tried to simulate a model and i used a user-defined function:" Matlab Function".
there is 2 inputs to this function. the two inputs are combined using mux.
when i start the simulation ,i get the following message :
"Evaluation of expression resulted in an invalid output. Only finite double vector or matrix outputs are supported."
and the simulation stop.
the function which i used is:
note: i have wrote the following code in model properties callback function InitFcn:
please , i want to know what is the problem, and how to solve this problem.
thanks for attention.