xierxier
2012-05-04, 19:29
初学编程 有点问题请教大家 问题简单 见笑了
function coeffs = decdemo( im, option )
% Input image
if ~exist('im', 'var')
% Zoneplate image: good for illustrating multiscale and directional
% decomposition
im = imread ('zoneplate.png') ;
elseif isstr(im)
im = imread ( im ) ;
else
error('You shall input valid image name!');
end
我想运行另外一张图片A.jpg,执行else if里的语句。但不知道怎么改。
在命令窗口中输入a=decdemo(A.jpg,option)
显示Undefined function or variable 'A'.
初学 还在摸索中 谢谢
function coeffs = decdemo( im, option )
% Input image
if ~exist('im', 'var')
% Zoneplate image: good for illustrating multiscale and directional
% decomposition
im = imread ('zoneplate.png') ;
elseif isstr(im)
im = imread ( im ) ;
else
error('You shall input valid image name!');
end
我想运行另外一张图片A.jpg,执行else if里的语句。但不知道怎么改。
在命令窗口中输入a=decdemo(A.jpg,option)
显示Undefined function or variable 'A'.
初学 还在摸索中 谢谢