필터 지우기
필터 지우기

how to combine more than 2 matrics

조회 수: 2 (최근 30일)
ajith
ajith 2013년 5월 23일
i have 1x 400 matrix at 6 times i need to combine to 6x 400 matrix how do i do it i try
q=[latent;latent1;latent2;latent3;latent4;latent5;latent6;latent7];
its show error
??? Error using ==> vertcat CAT arguments dimensions are not consistent.
Error in ==> super at 57

답변 (2개)

Iain
Iain 2013년 5월 23일
That error comes up whenever you try to combine vectors of incorrect sizes.
You claim to have 6 vectors to combine, but your example code has 8 components - 2 of these are probably the wrong size
  댓글 수: 1
Azzi Abdelmalek
Azzi Abdelmalek 2013년 5월 23일
If you want to add a comment, click on comment on this question or comment on this answer

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


Azzi Abdelmalek
Azzi Abdelmalek 2013년 5월 23일
편집: Azzi Abdelmalek 2013년 5월 23일
a1=[1 2 3]
a2=[4 5 6]
a3=[7 8 9]
out=[a1;a2;a3]
There is no reason to get an error, unless your array are not the same size
  댓글 수: 1
ajith
ajith 2013년 5월 23일
ya sir my mistake thank you

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

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by