You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
% 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]);
Cite As
Héctor Corte (2026). Example of how to save or read data to an Excel archive. (https://uk.mathworks.com/matlabcentral/fileexchange/34631-example-of-how-to-save-or-read-data-to-an-excel-archive), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: xlswrite - legacy, xlsheets, dat2xls, xlschart, XLSWriteMex, xlswrite_mod, xlcolumn, xlswrite
General Information
- Version 1.0.0.0 (3.3 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
