Padcat with multiple matrices

2 Ansichten (letzte 30 Tage)
Chad
Chad am 5 Sep. 2013
How do I use padcat to create multiple nx4 matrices?
  2 Kommentare
Image Analyst
Image Analyst am 5 Sep. 2013
Did you already try asking the Author?
Chad
Chad am 5 Sep. 2013
no but I figured it out, thanks.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 5 Sep. 2013
Bearbeitet: Azzi Abdelmalek am 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 Kommentar
Azzi Abdelmalek
Azzi Abdelmalek am 5 Sep. 2013
[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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by