MATLAB Answers

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

2 views (last 30 days)
CalebJones
CalebJones on 25 Sep 2019
Commented: CalebJones on 25 Sep 2019
1.JPG
I have attached a mat file for your reference.

  0 Comments

Sign in to comment.

Accepted Answer

madhan ravi
madhan ravi on 25 Sep 2019
stats.state(ismember(stats.state,'rest'),:) = '-1';
stats.state(ismember(stats.state,'active'),:)= '1'

More Answers (0)

Sign in to answer this question.


Translated by