This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %open .mat file and saveas .png in matlab | |
| % you must edit load(sprintf('%d.mat',i)) | |
| % i have file like 1.mat , 2.mat , 3.mat ,4.mat ,5.mat ,6.mat | |
| for i=1:6 | |
| load(sprintf('%d.mat',i)) | |
| x = cjdata.image; | |
| imshow (x,maps); | |
| h=figure(1); | |
| saveas(h,sprintf('%d.png',i)); | |
| end |
NewerOlder