How to create a single .mat file from multiple images?

조회 수: 21(최근 30일)
Le Nguyen
Le Nguyen 2012년 10월 5일
댓글: Shourya 2022년 1월 19일
Hi all,
Assume that I have 5 images as following: 1.bmp, 2.bmp, 3.bmp, 4.bmp, 5.bmp. I want to combine those 5 images into a single .mat file. Anyone knows how to solve this issue, please help me!!
Thanks in advance!!
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2013년 8월 1일
What is the error message?

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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 10월 5일
편집: Azzi Abdelmalek 2012년 10월 5일
for k=1:5
save file h
  댓글 수: 7
Jan 2013년 8월 1일
@Le: Please be careful with the exclamation marks. The have a lot of power in English, e.g. much more than in German.
Your solution looks fine and efficient. Disk access like imread has the benefit, that it is such slow, that improvements in other parts of the code are usually not significant.

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

추가 답변(1개)

mona 2017년 2월 3일
how to deal with images in a single .mat file?
  댓글 수: 1
Shourya 2022년 1월 19일
Have you figured out how to display multiple images stored in a single .mat file? Please help.

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


Community Treasure Hunt

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

Start Hunting!

Translated by