What is the syntax for appending same variable with different values to an existing .mat file? When I use -append, I end up replacing the values!
for col = 1:10
out = zeros(1,1000000);
if col == 1
After running the above code, I have the replaced values instead of appending the updated/current values in out into the .mat file after every loop iteration.
Everytime, I iterate through the for loop, I want to save current values in the variable out(1x1000000) into the .mat file row-wise. At the end, I should have (10x1000000) matrix in z.mat and my variable out should hold only 1x1000000 vector during each iteration at a time.
How can I achieve this?
What am I missing?