detailed description of handle properties from command line
Mostra commenti meno recenti
I'm wondering if someone here can help me out with an infrequent annoyance I encounter with handle properties in MATLAB. I am well aware that the properties associated with a handle object can be queried with the get(handle) command. However, where I begin to stumble is when I need to know the details associated with a particular property. As an example, take the figure handle property 'Position'. Not knowing much about it's behavior, by it's name, 'Position' sounds like it controls what I want so what I want to do is execute a command like:
help(get(gcf,'Position'))
to get the details of the 'Position' property. I know that I can sift through the html documentation to find the details but that is really inefficient and time consuming whereas command line help is much more efficient.
Is there a command line shortcut to report the details of an arbitrary property without having to sift through the html documentation to get the information I seek?
Risposta accettata
Più risposte (2)
Walter Roberson
il 20 Ago 2011
Sorry, No, there is not.
You can use
set(gcf, 'Position') %notice this is SET
which will give you a (very) brief description of what must be paired with a 'Position' option, but it is only useful perhaps 1/3 of the time.
1 Commento
Christopher Beaudoin
il 20 Ago 2011
Jan
il 20 Ago 2011
0 voti
I simply read doc figure completely to learn the meaning and format of the properties. For learning a language it is usually necessary to drill the vocabulary.
2 Commenti
Christopher Beaudoin
il 20 Ago 2011
Oleg Komarov
il 20 Ago 2011
I agree with Cristopher this time, I keep forgetting stuff and unfortunately you cannot use the same syntax as:
help containers.Map.KeyType
with hg.figure.Position unless the .m helper is modified by including all helps of the underlying properties.
Categorie
Scopri di più su Whos in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!