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

1 visualización (últimos 30 días)
CalebJones
CalebJones el 25 de Sept. de 2019
Comentada: CalebJones el 25 de Sept. de 2019
1.JPG
I have attached a mat file for your reference.

Respuesta aceptada

madhan ravi
madhan ravi el 25 de Sept. de 2019
stats.state(ismember(stats.state,'rest'),:) = '-1';
stats.state(ismember(stats.state,'active'),:)= '1'

Más respuestas (0)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by