필터 지우기
필터 지우기

converting array char cells conversion to decimal numbers

조회 수: 7 (최근 30일)
Hadeel Arslan
Hadeel Arslan 2013년 4월 17일
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

채택된 답변

Yao Li
Yao Li 2013년 4월 17일
double(cell2mat(v))
  댓글 수: 2
Hadeel Arslan
Hadeel Arslan 2013년 4월 17일
it works perfectly , thanks alot
Hadeel Arslan
Hadeel Arslan 2013년 4월 17일
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!!!!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by