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 Comment

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

Sign in to comment.

 Accepted Answer

Jan
Jan on 6 Dec 2011
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 Comments

sita
sita on 6 Dec 2011
yes ,i am looking for same...thanks....
the how do you add vaules to each array?
first output an array of U going into first array 2nd U and so forth?

Sign in to comment.

More Answers (0)

Categories

Find more on Operators and Elementary Operations in Help Center and File Exchange

Asked:

on 6 Dec 2011

Commented:

on 4 Jun 2021

Community Treasure Hunt

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

Start Hunting!