Padcat with multiple matrices

How do I use padcat to create multiple nx4 matrices?

2 comentarios

Image Analyst
Image Analyst el 5 de Sept. de 2013
Did you already try asking the Author?
Chad
Chad el 5 de Sept. de 2013
no but I figured it out, thanks.

Iniciar sesión para comentar.

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 5 de Sept. de 2013
Editada: Azzi Abdelmalek el 5 de Sept. de 2013

0 votos

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

1 comentario

Azzi Abdelmalek
Azzi Abdelmalek el 5 de Sept. de 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

Iniciar sesión para comentar.

Categorías

Más información sobre Operators and Elementary Operations en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 5 de Sept. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by