I want to write the results obtained in Matlab into excel and here is the sample of hat i did. I did it but it gave me the results with the name of the column on the bottom of the cell. secondly i noticed the calculation took so long to finished. here is the code. Thank you in advance
for x =1:1:100 y = 1+x w = 4+x s = xfilename = 'C:\Users\Name\Desktop\Performance.xlsx'; % the name of the file
Data_calculation= {y; 'y'};sheet = 1;xlRange = ['A' ,num2str(x), '']; xlswrite(filename,Data_calculation,sheet,xlRange);%-----------------------------------------------------------------% 1st
Data_calculation= { w; 'w'};sheet = 1;xlRange = ['B' ,num2str(x), ''];xlswrite(filename,Data_calculation,sheet,xlRange);% %-----------------------------------------------------------------------2nd
Data_calculation= { s; 's'};sheet = 1;xlRange = ['C' ,num2str(x), ''];xlswrite(filename,Data_calculation,sheet,xlRange);end
Best Answer