Is it "ok" to convert new graphics object handles to double handles?
Show older comments
The R2014b release notes say "you should not perform operations that assume or require graphics handles to be numeric values", such as "combine handles with data in numeric arrays"
Unfortunately i have some old code that does exactly that. But i can just convert the object handle to an old fashioned numeric handle by wrapping it with double(). For backward compatibility, this is the easiest thing for me to do. (Changing the array to a cell array would break old saved states of the GUI)
So is there any reason that i shouldn't just convert the object handle to a double? Will this capability be removed soon?
1 Comment
Star Strider
on 6 Nov 2014
I had no idea this was even possible. I’d be sure to save a backup copy of my code (and not delete R2014a), then convert them and see what the result is.
Good luck! Let us know.
Accepted Answer
More Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects 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!