how can make a matrix from many vectors?
조회 수: 6 (최근 30일)
이전 댓글 표시
how can make a matrix from many vectors?
댓글 수: 3
답변 (3개)
vaishali
2013년 10월 18일
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
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
참고 항목
카테고리
Help Center 및 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!