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 ExchangeNumerical 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