필터 지우기
필터 지우기

take three matrices into a single matrix

조회 수: 1 (최근 30일)
Eranja Noopehewa
Eranja Noopehewa 2018년 7월 31일
편집: jonas 2018년 7월 31일
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일
A=[a1;a2;a3]
a1 through a3 are single line vectors

추가 답변 (1개)

Alex Fratila
Alex Fratila 2018년 7월 31일
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!

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by