3个回答
展开全部
Matlab提供直来接的saveas函数可以将自指知定figure中的图道像
调用举例:
>> h=figure
h =
1
>> plot(rand(2,4))
>> saveas(h,'hello','jpg')
扩展资料:
MATLAB包括拥有数百个内部函数的主包和三十几种工具包。工具包又可以分为功能性工具包和学科工具包。功能工具包用来扩充MATLAB的符号计算,可视化建模仿真,文字处理及实时控制等功能。学科工具包是专业性比较强的工具包,控制工具包,信号处理工具包,通信工具包等都属于此类。
图形处理系统使得MATLAB能方便的图形化显示向量和矩阵,而且能对图形添加标注和打印。它包括强大的二维三维图形函数、图像处理和动画显示等函数。
展开全部
用saveas就可以,saveas(h,'filename','format') ,h是当前图的句柄,filename打算保存图片的路径,format是保存的格式,可以是jpg或fig等格式。
官方解释:SaveAs on the figure window menu to accessthe Save As dialog, in which you can select a graphics format. Fordetails, see Exporting in a Specific Graphics Format in the MATLAB® Graphicsdocumentation. Sizes of files written to image formats by this GUIand by saveas can differ due to disparate resolutionsettings.
调用举例:
>> h=figure
h =
1
>> plot(rand(2,4))
>> saveas(h,'hello','jpg')
官方解释:SaveAs on the figure window menu to accessthe Save As dialog, in which you can select a graphics format. Fordetails, see Exporting in a Specific Graphics Format in the MATLAB® Graphicsdocumentation. Sizes of files written to image formats by this GUIand by saveas can differ due to disparate resolutionsettings.
调用举例:
>> h=figure
h =
1
>> plot(rand(2,4))
>> saveas(h,'hello','jpg')
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Matlab提供直接的saveas函数可以将指定figure中的图像
例如
x=-pi:pi/20:pi;
for i=1:4
y(:,i)=sin(i*x);
text=['figure',num2str(i)]
figure(i)
plot(x',y(:,i))
title(text)
h1 = figure(i);
name1=['figure',num2str(i),'.jpg']
name1=['figure',num2str(i),'.fig']
saveas(h1,name1);
saveas(h1,name2);
end
例如
x=-pi:pi/20:pi;
for i=1:4
y(:,i)=sin(i*x);
text=['figure',num2str(i)]
figure(i)
plot(x',y(:,i))
title(text)
h1 = figure(i);
name1=['figure',num2str(i),'.jpg']
name1=['figure',num2str(i),'.fig']
saveas(h1,name1);
saveas(h1,name2);
end
更多追问追答
追问
请问saveas执行后,这个图存哪里了
追答
当前目录下面
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询