how can make a matrix from many vectors?
이전 댓글 표시
how can make a matrix from many vectors?
댓글 수: 3
sixwwwwww
2013년 10월 18일
Are all the vectors of same length?
Azzi Abdelmalek
2013년 10월 18일
You should precise column vectors or row vectors?
fatemeh
2013년 10월 18일
답변 (3개)
vaishali
2013년 10월 18일
1 개 추천
C = horzcat(A1, A2, ...) horizontally concatenates matrices A1, A2, and so on. All matrices in the argument list must have the same number of rows
Jos (10584)
2013년 10월 18일
편집: Jos (10584)
2013년 10월 18일
1 개 추천
Azzi Abdelmalek
2013년 10월 18일
out=[A1;A2;A3;...]
댓글 수: 1
Azzi Abdelmalek
2013년 10월 18일
편집: Azzi Abdelmalek
2013년 10월 18일
out=zeros(1000,2) % Pre-allocate
for k=1:1000
out(k,:)=... % your calculations
end
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!