convert two .jpg files into a single .mat file

1 view (last 30 days)
dinesh
dinesh on 29 Nov 2012
Commented: Yogesh Awate on 28 Nov 2017
How to convert two .jpg files into a single .mat file in matlab

Answers (1)

Jan
Jan on 29 Nov 2012
pic1 = imread('Picture1.jpg');
pic2 = imread('Picture2.jpg');
save('BothPics.mat', 'pic1', 'pic2');
  4 Comments
Yogesh Awate
Yogesh Awate on 28 Nov 2017
sorry to not mentioning, they are .tif images
Yogesh Awate
Yogesh Awate on 28 Nov 2017
Thank you,you code was very helpful, thanks a lot!

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!