MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   请问:matlab里面保存某个图象到文件的命令 (https://www.labfans.com/bbs/showthread.php?t=3822)

qianjin820419 2008-07-05 02:20

请问:matlab里面保存某个图象到文件的命令
 
matlab里面保存某个图象到文件的命令有没有呀 ?
就像save(‘filename’,x,y,‘-ascii’)类似的命令

remnant 2008-07-05 16:23

1:saveas( handle, filename, format )

handle: 句柄
filename: 保存的文件的名字
format: bmp, jpg ... ...
如:
hplot = plot( x, y );
saveas( hplot,'E:\maltabwork\test', 'bmp' );
详细请 doc saveas.

2:print( handle, format, filename )
handle: 同上
format: bmp, jpg ... ..,这个和上面写法有些不一样, 如果要存为bmp格式:'-dbmp'
filename: 同上
如:
hplot = plot( x, y );
print( hplot, '-dbmp','E:\matlabwork\test' );
详细请 doc print


所有时间均为北京时间。现在的时间是 11:10

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.