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

버전 1.0.0.0 (3.3 KB) 작성자: Héctor Corte
This function writes data inside an Excel archive. Is an example of usage of commands.
다운로드 수: 622
업데이트 날짜: 2012/1/17

라이선스 보기

% 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]);

인용 양식

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. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0