open a simulink model in matlab

To open a Simulink model file (.slx) in Matlab, you can use the "open" command followed by the path to the model file. For example:

main.m
open('path/to/my/model.slx')
29 chars
2 lines

This will open the Simulink model in a separate window within the Matlab environment.

gistlibby LogSnag