pictureinapicturezoom
所属分类:matlab编程
开发工具:matlab
文件大小:6KB
下载次数:325
上传日期:2010-09-16 15:33:25
上 传 者:
chenshukun
说明: 利用MATLAB绘制图形,并用鼠标拖拉矩形框,选中图形局部放大后,绘制在原图形的右上角,使得局部细节更清晰
(Using MATLAB to draw graphics, and drag a rectangle with the mouse, select the graphics local amplification, drawn in the upper right corner of the original graphics, making the local details more clearly)
文件列表:
getn.m (582, 2010-09-12)
mmzoom.m (4550, 2010-09-12)
PictureInaPictureZoom.m (4148, 2010-09-16)
getbox.m (2454, 2010-09-12)
%function myDraw %%%主要修改这一部分
% % t = linspace(0,1); %等分100份
% % x = sin(2*pi*t);
% % y = 1.2*cos(4*pi*t);
% % z = exp(-2*t).*sin(3*pi*t - pi/4);
% % plot(t,x,t,y,'-.',t,z,'--')
% title('画中画示例.');xlabel 't',ylabel('X, Y, Z')
%h=legend('x','y','z',2); %设置图例,0--空地,1--右上,2--左上
% set(gca,'ButtonDownFcn','selectmoveresize') %图形可以选中、移动、改变大小
%使用说明
% 把pictureinapicturezoom.m文件中上述部分注释掉,在命令窗口绘制自己的图形,例如
% x:表示红外光谱采集的波数点1958*1
% y:表示各波数点处的样品吸光度1958*1
% plot(x,y)
% title('食用植物油红外光谱图');xlabel('x'),ylabel('y')
% h=legend('x','y',2);%设置图例,0--空地,1--右上,2--左上
% 然后用鼠标画矩形框选取要放大的区域,然后显示在右上角。
% 大功告成!!!
近期下载者:
相关文件:
收藏者: