reshape,ascii to binary

조회 수: 3 (최근 30일)
osman yurdakul
osman yurdakul 2011년 5월 19일
hi friends,
i have an ascii word and its binary state:
x = dec2bin('matlab')
x =
1101101
1100001
1110100
1101100
1100001
1100010
but i do not want this in this way... i want it like an array that is below:
y = 110110111000011110100110110011000011100010
the question is how can i convert x to y?
i tried reshape() function but i couldnt success :(
please let me know...

채택된 답변

Sean de Wolski
Sean de Wolski 2011년 5월 19일
y = reshape(x',1,numel(x))
transpose first
  댓글 수: 7
Matt Fig
Matt Fig 2011년 5월 20일
sprintf('%i',yv)
osman yurdakul
osman yurdakul 2011년 5월 20일
thanks again :)..

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

추가 답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 5월 19일

카테고리

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