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

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일

1 개 추천

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.

카테고리

제품

질문:

2013년 2월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by