Effacer les filtres
Effacer les filtres

converting array char cells conversion to decimal numbers

7 vues (au cours des 30 derniers jours)
Hadeel Arslan
Hadeel Arslan le 17 Avr 2013
hello matlabers :) I wanna ask you how to convert an array cells that consists of char's to decimal numbers ... for example if I have this array ( v={'a' 'b' 'c' ;'b' 'c' 'a'} ) how can I convert it let's say v= 97 98 99 ; 98 99 97}
thanks indeed

Réponse acceptée

Yao Li
Yao Li le 17 Avr 2013
double(cell2mat(v))
  2 commentaires
Hadeel Arslan
Hadeel Arslan le 17 Avr 2013
it works perfectly , thanks alot
Hadeel Arslan
Hadeel Arslan le 17 Avr 2013
if I may ask....how can split a bigger array into to 2 ordered halves , let's assume ... (50/50) and apply training in the first half and testing on the second half!!!!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by