MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB混合编程] mat文件为什么不能绘制出来? (https://www.labfans.com/bbs/showthread.php?t=9129)

lyhuaer 2009-07-02 09:59

mat文件为什么不能绘制出来?
 
大家好! 我想在MATLAB中实现将我自己的相片压缩,但是在讲JPG转化为。mat文件后,图像却不能显示,这是为什么啊?马上就要交作业了,急求大家指教。程序如下:
>> clear
>> I=imread('arms','jpg');
>> save('arms.mat','I');
>> load arms;
>> subplot(221);
>> image(X);
??? Undefined function or variable 'X'.

lingyun422 2009-07-03 11:13

回复: mat文件为什么不能绘制出来?
 
你从.mat文件导出的变量叫做I,你应该绘制I才对嘛。


所有时间均为北京时间。现在的时间是 09:47

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