www.pudn.com > Range-dopple.rar > plot_img.m, change:2007-12-08,size:309b


function plot_img(x,y,img,scope) 
%%用dB显示数据矩阵的图像 
%x,y:指定x,y坐标 
%img:二维复数矩阵 
%scope:显示动态范围0~120dB 
 
img=abs(img); 
G=20*log10(img+1); 
clear img; 
gm=max(G(:)); 
gn=gm-scope;%显示动态范围 
G=255/(gm-gn)*(G-gn).*(G>gn); 
% imagesc(x,y,-G); 
imagesc(x,y,G); 
colormap(gray); 
axis xy;