i have three matrix each of size 1*100 how can i take it to a single matrix of 3*100

 채택된 답변

jonas
jonas 2018년 7월 31일
편집: jonas 2018년 7월 31일

0 개 추천

A=[a1;a2;a3]
a1 through a3 are single line vectors

추가 답변 (1개)

Alex Fratila
Alex Fratila 2018년 7월 31일

0 개 추천

Let's say your matrices are named a, b, and c. Then, you can concatenate them like this:
newMatrix = [a ; b ; c];
The semicolon stacks your matrices on top of each other (vertical concatenation). Here is a page with more info!

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2018년 7월 31일

편집:

2018년 7월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by