How can I create MAT file?

1 view (last 30 days)
Pam
Pam on 6 Feb 2013
I'm doing with object in video tracking, I have a set of 5,000 jpg images, so I'd like to create a file to store those images as I can load all images from a MAT file into MATLAB. Can anyone please guide me how to do that?

Accepted Answer

Jos (10584)
Jos (10584) on 6 Feb 2013
help imread
help save
  2 Comments
Jan
Jan on 6 Feb 2013
+1: exactly.
Pam
Pam on 24 Sep 2013
Thanks

Sign in to comment.

More Answers (1)

Jan
Jan on 6 Feb 2013
Storing pictures in JPEG files is a good idea already. In MAT files they will occupy much more memory such that I guess that the reading will be slower. Anyhow, it works: Create a loop, use IMREAD to import one file, store it in a cell and save this cell at the end in a MAT file using SAVE.

Categories

Find more on App Building in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!