Padcat with multiple matrices

How do I use padcat to create multiple nx4 matrices?

2 个评论

Did you already try asking the Author?
no but I figured it out, thanks.

请先登录,再进行评论。

回答(1 个)

You can use
A=[2 3;4 5];
m=4;
out=repmat(A,m,1)
%or
out=repmat(A,1,m)

1 个评论

[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

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息

标签

提问:

2013-9-5

Community Treasure Hunt

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

Start Hunting!

Translated by