fid = fopen('Results.csv','wt');
ncol = 16;
format_str = [repmat('%12.6f,',1,ncol) '\n'];
for k = 1:100
A = (some equation);
fprintf(fid, 'Iteration %d\n', k);
fprintf(fid, format_str, A.');
fprintf(fid, '\n');
end
fclose(fid);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!