How to export data (simulation result) from MATLAB to excel?
7 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!