Example of how to save or read data to an Excel archive.

This function writes data inside an Excel archive. Is an example of usage of commands.
622 Downloads
Aktualisiert 17. Jan 2012

Lizenz anzeigen

% First we create some data.

t=linspace(0,10);
x=sin(t);
data=num2cell([t;x]');

% Now we have a cell with two rows, one % for t and another for x.
% We also have an Escel archive called % "myexcel.xls"
% We want to put those rows into the
% excel archive, in rows A and B.
% With headers "t" and "x(t)".

[name,path]=uigetfile('*.*');
workwith_excel([path,name],'Hoja1',[{'t'},{'x(t)'}],[1,1;1,2]); workwith_excel([path,name],'Hoja1',data,[2,1;11,2]);

Zitieren als

Héctor Corte (2024). Example of how to save or read data to an Excel archive. (https://www.mathworks.com/matlabcentral/fileexchange/34631-example-of-how-to-save-or-read-data-to-an-excel-archive), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2010a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0