MATLAB: How to write Mean Square Error, Value in text file.

Image Processing Toolboxmsepsnrssim

Hello Everyone..
I have dataset of image 5000. i want to check performance parameter of these images by MSE (Mean Square Error), PSNR, SSIM. so how can i write value of every MSE, PSNR or SSIM in text file or excel file or notepad. I need MATLAB code for this.
please Help
Thankuuu.

Best Answer

Here's a start:
fid = fopen(fileName);
fprintf(fid, 'MSE = %f\nSNR = %f\nSSIM = %f\n', theMSE, thePSNR, theSSIM);
fclose(fid);
Related Question