how matlab stores graphics objects?
Afficher commentaires plus anciens
when i create a figure i noticed that it have alot of propeties and each property hold values,
that means alot of bytes, but the figure size seems to be 8 bytes despite all the properties values which are having a greater size,

my question is if properties values are not stored on (RAM), then where the properties values are stored then, and how matlab calls them that fast if they are really not stored on RAM.
please don't give me links, and thanks in advance
3 commentaires
Jan
le 27 Fév 2021
"please don't give me links" ?! I cannot imagine, why a link to the documentation is rejected.
Osama Alkurdi
le 27 Fév 2021
Modifié(e) : Osama Alkurdi
le 27 Fév 2021
Osama Alkurdi
le 27 Fév 2021
Modifié(e) : Osama Alkurdi
le 27 Fév 2021
Réponse acceptée
Plus de réponses (2)
This shows, that the displayed "Bytes" in the output of whos does not mean the actually used memory. Note that a variable has an overhead of about 100 Bytes also, so "24 Bytes" for x is not the actual memory consumption also, but only the size of the payload.
1 commentaire
Osama Alkurdi
le 27 Fév 2021
Modifié(e) : Osama Alkurdi
le 27 Fév 2021
Bruno Luong
le 27 Fév 2021
Modifié(e) : Bruno Luong
le 27 Fév 2021
0 votes
All graphic objects are class "handle". Handles is a identify to designate the object and it's obviously 8 bytes as showed by whos command (ihanle is probaby a pointer or or hashcode, we shoudn't care about the internal meaning).
All the properties and RAM storage are not showed with whos.
Matlab might share RAM for many the data, that happens with object class such as graphical underlined and hierarchical objects.
Details of grahical properties are subjected to change from version to version.
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!