Hi,
You can try using save_system for saving your simulink model. Also, refer to the documentation of save_system to learn what all parameters it can take.
Ex:
save_system('newmodel') %saves the model newmodel. The model must be open or loaded.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!