From: Ender on
I have followed MatLab's Excel comand for writing to Excel, but I cannot figure out why Matlab is not writing my matrix to Excel

ex:
Turbo_mass_system = [12;15;45;6];
Turbo_Power = [24;78;95;35]

% Write the data to Excel
data_out = {'Mass', 'Turbine Power';Turbo_mass_system,Turbo_Power};
xlswrite('Power_Scaling.xls',data_out,'Power Scaling for Turbines');

My actual data is 14 X 1 of data, but I used these numbers as an example.

Excel displays my headings, but will not display my number values in the subsequent rows.

--Ender--
From: TideMan on
On Jul 31, 3:23 am, "Ender " <jr...(a)msstate.edu> wrote:
> I have followed MatLab's Excel comand for writing to Excel, but I cannot figure out why Matlab is not writing my matrix to Excel
>
> ex:
> Turbo_mass_system = [12;15;45;6];
> Turbo_Power = [24;78;95;35]
>
> % Write the data to Excel
>     data_out = {'Mass', 'Turbine Power';Turbo_mass_system,Turbo_Power};
>     xlswrite('Power_Scaling.xls',data_out,'Power Scaling for Turbines');
>
> My actual data is 14 X 1 of data, but I used these numbers as an example.
>
> Excel displays my headings, but will not display my number values in the subsequent rows.
>
> --Ender--

Try this:
data_out = {'Mass', 'Turbine Power'};
xlswrite('Power_Scaling.xls',data_out,'Power Scaling for Turbines');
xlswrite('Power_Scaling.xls',[Turbo_mass_system Turbo_Power],'Power
Scaling for Turbines','A2');
 | 
Pages: 1
Prev: interpreting data
Next: writing to Excel