Change value of states "active" to 1 and "rest" to -1

 採用された回答

madhan ravi
madhan ravi 2019 年 9 月 25 日

0 投票

stats.state(ismember(stats.state,'rest'),:) = '-1';
stats.state(ismember(stats.state,'active'),:)= '1'

その他の回答 (0 件)

カテゴリ

質問済み:

2019 年 9 月 25 日

コメント済み:

2019 年 9 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by