How can I export a m file to excel ?
Mostra commenti meno recenti
I am working on a project in which I am comparing two images. Now the matrix for one of the images is 231x338x3 uint8 and I want to export this matrix into a excel or access file.
3 Commenti
Neel Wani
il 19 Giu 2016
Geoff Hayes
il 20 Giu 2016
Neel - why Excel? You may find http://www.mathworks.com/help/matlab/import_export/exporting-to-excel-spreadsheets.html useful.
Neel Wani
il 23 Giu 2016
Risposte (1)
Shameer Parmar
il 22 Giu 2016
Try for this..
as you mentioned you have 231x338x3 matrix, it means it is having 3 sets of 231x338
let us consider, it is matrix 'A' of 231x338x3 size
for i = 1:size(A,3)
xlswrite('ABC.xlsx', A(:,:,i), ['Sheet',num2str(i)], 'A1');
end
Categorie
Scopri di più su Spreadsheets in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!