I have something simple like the following, where I call the script for 5 iterations.
for n=i:5
(call script)
end
How can I save one variables output to excel. Say variable A changes for each iteration:
A=5
A=2.7
A=6
.
.
Can this be saved into Excel in one column?
Should I use:
xlswrite(‘output.xlsx’,A,…..
With some range?
The best is to do something like this:
If you want to save more values, then you could do something like this:
The xls file is created in your Matlab’s current directory.
Hope this helps,