imshowで白枠を残さずに保存する呪文です。
imgの部分にご自身の画像pathを書けばOK。
医療画像をMATLABで扱う場合には必須テクです。
とりあえず、作業ディレクトリに保存される書き方。
保存場所は、最後のファイル名で指定可能。
〜 figure(1) imshow(DWI_img,[],'Border','tight'); set(figure(1),'Units','inches'); pos = get(figure(1),'Position'); set(figure(1),'PaperPositionMode','Auto','PaperUnits','Inches','PaperSize',[pos(3), pos(4)]) print(figure(1),'DWI_img','-djpeg','-r0') 〜