How to automatically store values into an excel sheet through matlab?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ihtisham Khan
am 17 Apr. 2018
Beantwortet: giovanacgois
am 12 Mai 2018
Hello, I have a program that generate different values and i want them to be stored in an excel sheet automatically. For demo purpose see the following code,
if true
% for i=1:10
% for j=1:10
k=i*j;
end
end
end
I want k to be stored in an excel sheet, automatically.
Thanks.
Akzeptierte Antwort
giovanacgois
am 12 Mai 2018
You can do:
for i=1:10
for j=1:10
k=i*j;
M(i,j)=k;
end
end
xlswrite('filename.xls', M, 1);
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!