Padcat with multiple matrices

2 ビュー (過去 30 日間)
Chad
Chad 2013 年 9 月 5 日
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 日
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

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by