Getting warning about IPTCHECKNARGIN when using IMLINE after 2012a upgrade

8 次查看(过去 30 天)
I created a gui using imline for selecting range on some figures. It works great and still does. After I updated to 2012a, however, I get multiple warnings whenever I call IMLINE, indicating that IPTCHECKNARGIN will be removed from a future version of Matlab.
I know I can silence these warnings simply by using WARNING but I'm worried that my implementation of IMLINE will stop working on the next upgrade. Is IMLINE upgradable/replaceable without writing my own version (NOT fun at all!)? I'm also a bit confused that Mathworks apparently didn't bother to update their own code.
For what it's worth, calling IMLINE directly from the command line causes the same warning.
Thanks for any help!

采纳的回答

Steve Eddins
Steve Eddins 2013-2-5
We did bother to update our own code. imline in R2012a does not contain any calls to iptchecknargin.
Perhaps you have an old (pre-R2012a) version of the Image Processing Toolbox on your path?

更多回答(1 个)

Craig Szymanski
Craig Szymanski 2013-2-14
Thanks for the reply, I just got back to working on this project today. Is there a way to force update the image processing toolbox path or can you point me to where I could read about this?
When I use the VER command, I get (along with a lot of other lines...): Image Processing Toolbox Version 8.0 (R2012a)
I also went into Set Path..., reset it to default, saved, then added my paths back, and saved again. I get the same warning.
One option I could do is to uninstall 2012a and reinstall, though this takes a while... I no longer have 2011b installed.
Sorry about my phrasing about 'Bothering' to update your code. I was really surprised at even the possibility that you missed this. I'm glad to know my trust in Mathworks is well placed.
  3 个评论
Image Analyst
Image Analyst 2013-2-18
You probably ran the older version after you installed and ran the newer version. Maybe that's why your path got changed.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Scripts 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by