MATLAB: Creating .mat file image processing Sir I have 15 images ,I want to create .mat file so that i can load these images easily,please tell how to create .mat file Best Answer 1.) If the images are the same size you can put them in an array and save that. If different, use a cell array.2.) You can use matfile() to create a writable .mat file, save data into it, and then load that. matobj = matfile('c:\data\mymat','Writable',true); matobj.image1 = randn(256,256); matobj.image2 = randn(256,256); loadimage1 = matobj.image1; % or load('mymat.mat','image1'); Related SolutionsMATLAB: Want to plot MSE for a given error Assume x is one vector and y is another. you can think of x as your original and y the fit.x = randn(100,1);y = randn(100,1);mean(abs(x-y).^2)If X and Y are images X= randn(256,256); Y = randn(256,256); absD = abs(X-Y).^2; sum(absD(:))/numel(X) MATLAB: How to put 3 axes’s images into one single mat file They are not "viewed as" a mat file but you can store them in a mat file. Just get your three images and call savesave(fullMatFileName, 'image1', 'image2', 'image3'); Related QuestionSave more than one image in a matfileQuestion on image coefficients using matlab
Best Answer