MATLAB: .m file variable to simulink model

code generationmodelsimulinkworkspace

How can I use a variable used in .m file into the simulink model?

Best Answer

You can use a block called "from workspace" in simulink source library.
Related Question