Change value of states "active" to 1 and "rest" to -1
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    CalebJones
 il 25 Set 2019
  
    
    
    
    
    Commentato: CalebJones
 il 25 Set 2019
            
I have attached a mat file for your reference.
0 Commenti
Risposta accettata
  madhan ravi
      
      
 il 25 Set 2019
        stats.state(ismember(stats.state,'rest'),:) = '-1';
stats.state(ismember(stats.state,'active'),:)= '1'
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

