Undefined function 'iptcheckhandle' for input arguments of type 'cell'.

2 vues (au cours des 30 derniers jours)
Edgar
Edgar le 6 Déc 2014
Commenté : Bryan le 4 Août 2015
Hi all,
I am trying to find the position of the mouse pointer in an image. I am using MATLAB Version: 8.1.0.604 (R2013a).
I am having problems with impixel info. When I try to run impixelinfo from the help example:
h = imshow('hestain.png');
hp = impixelinfo;
set(hp,'Position',[5 1 300 20]);
figure
subplot(1,2,1), imshow('liftingbody.png');
subplot(1,2,2), imshow('autumn.tif');
impixelinfo
I get the error:
Undefined function 'iptcheckhandle' for input arguments of type 'cell'.
Error in impixelinfoval (line 41)
iptcheckhandle(parent,{'figure','uipanel','uicontainer'},mfilename, ...
Error in impixelinfo/createPanel (line 134)
hPixelInfoValue = impixelinfoval(hPixInfoPanel,imageHandles);
Error in impixelinfo (line 77)
hPixInfoPanel = createPanel;
So it seems that I am missing some functions. I tried to install a newer version 2014b and I find the same problem. Any help or suggestions would be greatly appreciated.
Cheers
  2 commentaires
per isakson
per isakson le 6 Déc 2014
The example runs fine here. With R2013a
>> which iptcheckhandle
C:\Program Files\MATLAB\R2013a\toolbox\shared\imageslib\iptcheckhandle.m
What does
>> which iptcheckhandle
return on your system?
Edgar
Edgar le 8 Déc 2014
Hi isakson,
Thanks for your reply. When I run
which iptcheckhandle
I get:
'iptcheckhandle' not found.
Any suggestions?
Thanks again

Connectez-vous pour commenter.

Réponse acceptée

Edgar
Edgar le 8 Déc 2014
It was a path problem. In my case, the solution was to reset the pathdef to default and problem solved!
  1 commentaire
Bryan
Bryan le 4 Août 2015
Thanks for the update on that! Mine wasn't working even though I had just done a fresh reinstall of MATLAB and all the relevant toolboxes. For some reason it didn't set the paths correctly when I installed it. This was on two different versions of MATLAB. It seems strange that the path setting on a fresh install is different from the default path setting. Seems to be a bug in the installer.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by