MATLAB: Regarding .mat file.

.mat file

hello, I want to create a .mat file of a RGB data of .tif image.Please tell me how to create .mat file using matfile command.Example given will be much appreciated.

Best Answer

[X,map] = imread('your_image.tif');
save your_mat_file X map