Combining two binary words?

1 次查看(过去 30 天)
If i have a=011 and b=100
how will i write y=[011100] in the combined form in matlab.
Please help me.
  1 个评论
Jan
Jan 2013-8-7
编辑:Jan 2013-8-7
What does "a = 011" exactly mean? Leading zeros are not meaningful for numbers, so perhaps you mean strings:
a = '011'
or vectors:
a = [0, 1, 1]
Please explain this. But in both cases Azzi's suggested [a,b] would be correct.

请先登录,再进行评论。

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-8-7
  2 个评论
Pooja
Pooja 2013-8-7
y=[a b] gives the o/p as 011 100 only i need to get as 011100. Does the two mean the same?

请先登录,再进行评论。

更多回答(0 个)

类别

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