Borrar filtros
Borrar filtros

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

5 visualizaciones (últimos 30 días)
Ramzan
Ramzan el 24 de Feb. de 2013
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

Respuestas (1)

Mohan
Mohan el 26 de Feb. de 2013
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.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by