Padcat with multiple matrices
조회 수: 1 (최근 30일)
이전 댓글 표시
How do I use padcat to create multiple nx4 matrices?
답변 (1개)
Azzi Abdelmalek
2013년 9월 5일
편집: Azzi Abdelmalek
2013년 9월 5일
You can use
A=[2 3;4 5];
m=4;
out=repmat(A,m,1)
%or
out=repmat(A,1,m)
댓글 수: 1
Azzi Abdelmalek
2013년 9월 5일
[Chad commented]
Thanks guys, but I sort of side-stepped my problem using xlswrite in a for loop and updating the matrix each iteration. But Azzi's solution would also work
참고 항목
카테고리
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!