How can I export a m file to excel ?

1 visualización (últimos 30 días)
Neel Wani
Neel Wani el 19 de Jun. de 2016
Comentada: Neel Wani el 23 de Jun. de 2016
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 comentarios
Neel Wani
Neel Wani el 23 de Jun. de 2016
The reason behind using excel is because I would be using another software which accepts only excel or access

Iniciar sesión para comentar.

Respuestas (1)

Shameer Parmar
Shameer Parmar el 22 de Jun. de 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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by