フィルターのクリア

Combining two binary words?

1 回表示 (過去 30 日間)
Pooja
Pooja 2013 年 8 月 7 日
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?
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 8 月 7 日
a='011'
b='100'
y=[a b]
%y=011100

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumeric Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by