How do I store the changing values of a variable (generated in a for loop) into a single file without overwriting the previous one?
4 views (last 30 days)
n = 100;
for ii = 1 : n
areatriangle = .5*((ii/2)*ii);
In the case above, I want to store all the outcomes/iterations of areatriangle, not just the last one. How do I do this?
Thanks in advance for your help!