필터 지우기
필터 지우기

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 CenterFile Exchange에서 Numeric Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by