Dear all,

I want to use the S-function in Simulink to connect it to COMSOL. I am able to use the Livelink and can import COMSOL model to MATLAB and can access the results. But my problem is as follows:

The exported file from COMSOL is simulated as standalone in m.format. It doesn't require any additional Inputs. The S-function requires a function file with input and output argument.

Does anyone have idea, how to convert the m. file from COMSOL to a function file in [o/p arg]= function[i/p arg] file?

thanks

More Parag Patil's questions See All
Similar questions and discussions