MATLAB Answers


Comment out Simulink block using a command line function?

Asked by Ryan
on 9 Jul 2013
I would like to use the awesome feature in Simulink of commenting out blocks in my design that I don't need for particular tests. The problem is, I'd want to do this using an initialization script, so that when I initialize the model, it has a number of different configurations depending on which blocks I decided to comment out. This would greatly improve my simulation speed. If anyone knows the function to do this, please let me know; I'm aware of some of the functions to manipulate Simulink via command line, but not this one.


Sign in to comment.



1 Answer

Answer by John Barber on 9 Jul 2013
 Accepted Answer

Try the following:

  1 Comment

Wonderful. Thanks very much.

Sign in to comment.