Getting warning about IPTCHECKNARGIN when using IMLINE after 2012a upgrade

2 views (last 30 days)
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!

Accepted Answer

Steve Eddins
Steve Eddins on 5 Feb 2013
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?

More Answers (1)

Craig Szymanski
Craig Szymanski on 14 Feb 2013
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 Comments
Image Analyst
Image Analyst on 18 Feb 2013
You probably ran the older version after you installed and ran the newer version. Maybe that's why your path got changed.

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!