creating a matrix using integers and other matrices

so let's say that I have two 1x3 matrices, a & b, and I want to create another matrix, c, where c is [1,2,a;3,4,b], such that c is a 2x5 matrix, how can I do that?

답변 (1개)

James Tursa
James Tursa 2018년 9월 17일
편집: James Tursa 2018년 9월 17일
Exactly what you have already written:
c = [1,2,a;3,4,b];
What am I missing?

댓글 수: 1

I'm sorry, I just had to transpose a & b. Thank you for taking the time to answer my dumb question

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2018년 9월 17일

댓글:

2018년 9월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by