hi,, I have created array of arrays "myArray = createArrays(i, [60,1]);"to create array below function is used
function result = createArrays(nArrays, arraySize)
result = cell(1, nArrays);
for i = 1 : nArrays
result{i} = zeros(arraySize);
end
end
where i is increasing in loop.same way i want to store an array in increasing loop..how to store arrays in this ..how to print the content. 'i' increases in loop every time i want to store x(60,1) in my array for 350 times
Thanks , Sita

1 件のコメント

Jan
Jan 2011 年 12 月 6 日
Please format your code as explained in the "Markup help" link on this page. I've done this for you.

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

 採用された回答

Jan
Jan 2011 年 12 月 6 日

0 投票

I do not get the point: Your program does store an array inside a loop already. What is x(60,1)?
Perhaps you are looking for something like this:
c = cell(1, 350);
c(:) = {zeros(60, 1)};

2 件のコメント

sita
sita 2011 年 12 月 6 日
yes ,i am looking for same...thanks....
Tlotlo Oepeng
Tlotlo Oepeng 2021 年 6 月 4 日
the how do you add vaules to each array?
first output an array of U going into first array 2nd U and so forth?

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

質問済み:

2011 年 12 月 6 日

コメント済み:

2021 年 6 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by