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

11 ビュー (過去 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 Center および File ExchangeSpreadsheets についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by