Change value of states "active" to 1 and "rest" to -1
1 view (last 30 days)
Show older comments
I have attached a mat file for your reference.
0 Comments
Accepted Answer
madhan ravi
on 25 Sep 2019
stats.state(ismember(stats.state,'rest'),:) = '-1';
stats.state(ismember(stats.state,'active'),:)= '1'
More Answers (0)
See Also
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!