필터 지우기
필터 지우기

Comment out Simulink block using a command line function?

조회 수: 3 (최근 30일)
Ryan
Ryan 2013년 7월 9일
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.

채택된 답변

John Barber
John Barber 2013년 7월 9일
Try the following:
set_param(path_to_your_block,'Commented','on')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by