How can I make .xlxs file for the following code?
3 views (last 30 days)
Pulkit on 12 Sep 2022
It is my understanding that you want to store result variable 'alp' in Excel file. This can be done by taking a counter variable 'ctr' for storing memory address and storing alp as an array(or matrix). Then exporting 'alp' to .xlxs file using 'writematrix' command.
The following can be achieved as:
for i = 180:5:200;
for j = 0.00160:0.00001:0.00170;
for k = 0.1:0.01:1;
alp(ctr) = (j)*(i)*(i)/k;
display(i); display(j); display(k);
File_Name = 'File.xlsx';
Please refer to the following write matrix documentation for more information on how to operate ‘writematrix’ to export matrix into different file format.