MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   ??? Undefined function or variable 'imhistc'.是怎么回事啊。 (https://www.labfans.com/bbs/showthread.php?t=4491)

hfutqianwei 2008-09-18 10:00

??? Undefined function or variable 'imhistc'.是怎么回事啊。
 
我今天在一本书上面抄了一段利用MATLAB语言编写的绘制图像直方图的程序,
function [yout ,x] = imhist(varargin)
[a,n,isScaled,top,map,err_msg] = parse_inputs(varargin{:});
y = imhistc(a,n,isScaled,top);%call MEX file to do work
然后就提示
??? Undefined function or variable 'imhistc'.

Error in ==> d:\MATLAB6p5\work\Imhist.m
On line 6 ==> y = imhistc(a,n,isScaled,top); % Call MEX file to do work
不知道是什么原因??

zhaibolan 2008-09-25 16:59

回复: ??? Undefined function or variable 'imhistc'.是怎么回事啊。
 
你将imhistc看成一个函数来用,但它并不是函数,起码肯定不是matlab里的内置函数,是你自己编好的函数吗?

yhcode 2008-09-26 09:19

回复: ??? Undefined function or variable 'imhistc'.是怎么回事啊。
 
楼上的说法我认为是对的,是不是要用imhist函数?


所有时间均为北京时间。现在的时间是 11:21

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.