How to transform a string vector in a number vector.
Mostra commenti meno recenti
Hello guys !
I've a vector of 3 element x = ['hot' , 'cold' ,'warm'] and i want to assign a number at every words. For example.. hot = 1, cold = 2 , warm = 3 .. so that my vector x become x= [ 1 2 3].
How can i do it with a cicle?
thank you!!
Risposte (1)
Matthias Walle
il 6 Ott 2016
0 voti
Categorie
Scopri di più su String in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!