I am not able to use set_param to change type_options for system mask parameter

5 ビュー (過去 30 日間)
Aryan Sharma
Aryan Sharma 2020 年 6 月 16 日
編集済み: Aryan Sharma 2020 年 6 月 16 日
I am using following code
set_param(sub,'p','TypeOptions',{'1','2','3'})
I am not able do it this way, Is there any possible way to change options using set_param?

採用された回答

Ashish Azad
Ashish Azad 2020 年 6 月 16 日
Using set_param we can only change the value of a parameter.
In this instance you should use parameter object and dot operator to chnage the value
The syntax is as follows:
paramObj.TypeOptions= {'1','2','3'};

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAuthor Block Masks についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by