查看单个帖子
旧 2008-03-10, 16:23   #1
249573317
初级会员
 
注册日期: 2007-07-12
帖子: 9
声望力: 0
249573317 正向着好的方向发展
尴尬 【求助】image和imagesc

[x,y]=meshgrid(-2:0.5:2,-2:0.5:2)
t=x.*exp(-x.^-y.^2)
[px,py]=gradient(t,0.05,0.05)
td=sqrt(px.^2+py.^2)
subplot(221)
imagesc(t)
subplot(222)
imagesc(td)
colormap('gray')
运行,无图象
??? Error using ==> image
Error using ==> image
Image CData can not be complex.

Error in ==> imagesc at 19
hh = image(varargin{1},'CDataMapping','scaled');

Error in ==> wangge at 6
imagesc(t)
。。。这是怎么搞的,用which imagesc 查到imagesc-M文件,没有新建过同名文件。
image和imagesc有何区别?
249573317 当前离线   回复时引用此帖