fig2_4a.m

来自「these are the Mtlab functions to plot th」· M 代码 · 共 28 行

M
28
字号
%ploting the temporal frequency caused by translational motion

vx=3; vy=4;
for fx=-5:5
   for fy=-5:5
      ft(fy+6,fx+6)=-vx*fx-vy*fy;
   end;
end;

ft0=zeros(11,11);

figure;
mesh(-5:5,-5:5,ft0);
%surf(-5:5,-5:5,ft0);
hold on;
mesh(-5:5,-5:5,ft);
%surf(-5:5,-5:5,ft);
view(30,20);
%xlabel('f_x');ylabel('f_y');zlabel('f_t');
%text(-1,-6,-60,'\fontname{time} \fontsize{10} f_x');
%text(6,1,-60,'\fontname{time} \fontsize{10} f_y');
text(-1,-6,-50,'f_x');
text(6,1,-50,'f_y');
text(-5.5,-7.0,0,'f_t');
text(-4,-4,35,'(v_x,v_y)=(3,4)');
text(2,2,20,'(v_x,v_y)=(0,0)')
colormap(gray)
print -deps2 linear_motion.eps

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?