reshape,ascii to binary

1 次查看(过去 30 天)
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 中查找有关 Logical 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by