Hi, Please post your code linewise. Right now its difficult to understand. But from what you said I gather, you want to save stresses/forces that comes out as vector in one loop. You want to carry out 40 loops and each time save that vector of forces/stress whatever. To do this, cells are very convenient..
suppose F= vector of forces.
>>force_cell= cell(1,40); % initialize a cellarray containing 40 cells.
>>for i=1:40
Now to you have all 40 vectors stored in cells. Suppose you want to call lets say 25th force vector. do this,
>>force_cell{25}
answer will show "F" vector corresponding to 25th loop.
Hope this helps.. Cheers..!
Best Answer