フィルターのクリア

how to acces blocks using iteration variable

2 ビュー (過去 30 日間)
Stalin Samuel
Stalin Samuel 2014 年 12 月 12 日
コメント済み: Sujoy Paul 2022 年 2 月 17 日
how to change this code in single line using for loop..
set_param('system/sub1','Commented','OFF') set_param('system/sub2','Commented','OFF') set_param('system/sub3','Commented','OFF') set_param('system/sub4','Commented','OFF') set_param('system/sub5','Commented','OFF') set_param('system/sub6','Commented','OFF')

採用された回答

Orion
Orion 2014 年 12 月 12 日
for i = 1:6
set_param(['system/sub' num2str(i)],'Commented','OFF');
end
  1 件のコメント
Sujoy Paul
Sujoy Paul 2022 年 2 月 17 日
Thanks a lot

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by