Can I comment out a block programmatically?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 25 Feb. 2019
Beantwortet: MathWorks Support Team
am 21 Mär. 2019
I would like to stop logging data to workspace after importing some data from a model into my script. I would like to do that by commenting out the "ToWorkspace" block. Is there a way to do that in my script?
Akzeptierte Antwort
MathWorks Support Team
am 25 Feb. 2019
You can comment out a block by using the following command in a script.
>> set_param('modelName/ToWorkspace','commented','on')
To uncomment the same block.
>> set_param('modelName/ToWorkspace','commented','off')
You can use this command to comment out the ToWorksapce block after getting the data from the model.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!