How to export data (simulation result) from MATLAB to excel?

조회 수: 7 (최근 30일)
Ramzan
Ramzan 2013년 2월 24일
Lets say i run a simple semiconductor device simulation.
My data is a set of input VGs which result in a set of Jfns.
And i need to export the data to MS excel for the re-plot.
Under help section, just managed to find the xlswrite(filename,...) command, and could not figure out how to use it for my purpose.
Is there any other way? Or is the xlswrite command can handle it?
The code as below;
--------------------------------------------------------------------
% for Tox=4nm
n=1; for Vg=0:1:5 Afn=1.1438e-06; Bfn=2.5318e+08; Tox=40e-8;
Eox=Vg/Tox; Jfn=Afn*Eox^2*exp(-Bfn/Eox)
n=n+1;
figure (1); hold on; plot (Vg,Jfn,'+r'); xlabel('Vg');ylabel('Jfn')
end

답변 (1개)

Mohan
Mohan 2013년 2월 26일
Try this line after the end.
xlswrite('D:\data.xlsx',Jfn,'Sheet1','A1');
Create the file data.xlsx in the D drive and close the file, before running the m file.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by