Hi,
I need to create a for loop like
for i=1:size(A,1)
Matrix(index)(:,i)= expression
end
I want to get a list of matrix like
Matrix1,Matrix2,Matrix3,Matrix4...
is that possible?

 採用された回答

KSSV
KSSV 2019 年 4 月 1 日
編集済み: KSSV 2019 年 4 月 1 日

0 投票

A = zeros(2,2,10) ;
for i = 1:10
A(:,:,i) = rand(2) ;
end
A(:,:,1)
A(:,:,3)
In your case follow:
for i=1:size(A,1)
Matrix(:,:,i)= expression ;
end

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

質問済み:

2019 年 4 月 1 日

編集済み:

2019 年 4 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by