hello
see 2 methods example below :
for k=1:10
xlswrite('Result.xlsx',rand(k),k); % option 1
writematrix(rand(k),'myData.xlsx','Sheet',k); % option 2
end
%
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!