Padcat with multiple matrices

How do I use padcat to create multiple nx4 matrices?

댓글 수: 2

Image Analyst
Image Analyst 2013년 9월 5일
Did you already try asking the Author?
Chad
Chad 2013년 9월 5일
no but I figured it out, thanks.

댓글을 달려면 로그인하십시오.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 9월 5일
편집: Azzi Abdelmalek 2013년 9월 5일

0 개 추천

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

댓글 수: 1

Azzi Abdelmalek
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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

태그

질문:

2013년 9월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by