How can I export a m file to excel ?

조회 수: 2 (최근 30일)
Neel Wani
Neel Wani 2016년 6월 19일
댓글: Neel Wani 2016년 6월 23일
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
Geoff Hayes
Geoff Hayes 2016년 6월 20일
Neel Wani
Neel Wani 2016년 6월 23일
The reason behind using excel is because I would be using another software which accepts only excel or access

댓글을 달려면 로그인하십시오.

답변 (1개)

Shameer Parmar
Shameer Parmar 2016년 6월 22일
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

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by