Making multiple matrices at once?

I'm trying to make several matrices though the specific number may vary from run to run. Specifically I need to make n^2 nxn matrices but asides from just making a bunch of them individually I have no idea how to do this. I would appreciate any help and thanks in advance.
P.S. : If any other information about the specifics of the problem is needed then let me know.

 채택된 답변

Stephen
Stephen 2012년 6월 5일

0 개 추천

make a structured variable
for t=1:n^2
V(t).matrix=zeros(n);
end
Call them by
V(t).matrix
and get specific elements as normal
V(t).matrix(column, row)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2012년 6월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by