Padcat with multiple matrices

How do I use padcat to create multiple nx4 matrices?

2 Comments

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

Sign in to comment.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 5 Sep 2013
Edited: Azzi Abdelmalek on 5 Sep 2013
You can use
A=[2 3;4 5];
m=4;
out=repmat(A,m,1)
%or
out=repmat(A,1,m)

1 Comment

[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

Sign in to comment.

Categories

Find more on Numerical Integration and Differential Equations in Help Center and File Exchange

Tags

Asked:

on 5 Sep 2013

Community Treasure Hunt

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

Start Hunting!