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!