Create plot with specified handle?
Ältere Kommentare anzeigen
I want to create a plot with the handle 32. Is there any way to do that?
2 Kommentare
Patrick Kalita
am 10 Mai 2011
As others have mentioned, the answer is no. But, can I ask why you would want to do that?
Matt Fig
am 10 Mai 2011
If you explain why you would want to do this, we could possibly suggest an alternative approach.
Akzeptierte Antwort
Weitere Antworten (2)
Walter Roberson
am 10 Mai 2011
1 Stimme
What is meant by a "plot" in this case? You can create a figure with the number 32 just by using figure(32) but you cannot control the exact numbers of any lower level graphics object.
Andrew Newell
am 10 Mai 2011
0 Stimmen
I doubt it. If you could create one plot with handle 32, you could create another, and then it wouldn't be unique any more. This could lead to some serious bugs.
MATLAB seems to choose very particular values for handles. On my machine, the first plot of a session is 174.00xx for some value of xx (this seems to vary). Then each new handle is incremented by 0.0006.
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!