Can I combine letters with numbers in the same matrix?
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
Can I combine letters with numbers in the same matrix?
I have vector B return two letters for example [L M]
And another vector O returns two numbers for example [1 2]
Can I combine them to be like this?
[L M
1 2]
댓글 수: 0
채택된 답변
  Rik
      
      
 2022년 8월 23일
        You have these options:
{'L','M';1,2}
["L","M";"1","2"]
['L','M';1,2]
double(['L','M';1,2])
댓글 수: 1
  Steven Lord
    
      
 2022년 8월 23일
				Another option:
T = table(['L'; 'M'], [1; 2])
T(1, :)
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


