widpmine
Junior Member level 1
I have this data generated in Matlab using m-file. After running the simulation for the first time and using xlswrite, it creates an excel file and saves the data.
My problem is that i want to save the final data from second simulation without having to go back to program n changing the same of the file to save. For Example;
Is it possible to do something like this!!
name = input(' Please enter the simulation Name = ', 's' )
%data = contains all the simulated data
s = xlswrite('mydata.xls', data, 'simulation1', 'B1');
xlswrite('mydata.xls', data, 'name', 'B1'); % Please note 'name' from the first line above
such that the first page in an excel file contains first simulation results n the other pages contain the other simulation results as indicated by the user.
Please Help. Thx
My problem is that i want to save the final data from second simulation without having to go back to program n changing the same of the file to save. For Example;
Is it possible to do something like this!!
name = input(' Please enter the simulation Name = ', 's' )
%data = contains all the simulated data
s = xlswrite('mydata.xls', data, 'simulation1', 'B1');
xlswrite('mydata.xls', data, 'name', 'B1'); % Please note 'name' from the first line above
such that the first page in an excel file contains first simulation results n the other pages contain the other simulation results as indicated by the user.
Please Help. Thx