Writing results in excel from matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ananya Malik
am 30 Mär. 2017
Kommentiert: Ananya Malik
am 30 Mär. 2017
I need to write a string value in an excel cell, followed by array values of A and B (each value in a different cell) like in the figure. But when I try the following code, only string is written and numeric values are lost. Any help appreciated.
function_name = 'F2';
A={[1 2 3 4]};
B= {[ 5 6 7 8]};
filename = 'testtest.xlsx';
xlswrite(filename,[{Function_name},A B])
0 Kommentare
Akzeptierte Antwort
KSSV
am 30 Mär. 2017
F = 'F2';
A=[1 2 3 4];
B= [ 5 6 7 8];
filename = 'testtest.xlsx';
xlswrite(filename,[{F} num2cell(A) num2cell(B)])
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!