detailed description of handle properties from command line
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 20 de Ag. de 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 comentario
Christopher Beaudoin
el 20 de Ag. de 2011
Jan
el 20 de Ag. de 2011
0 votos
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 comentarios
Christopher Beaudoin
el 20 de Ag. de 2011
Oleg Komarov
el 20 de Ag. de 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.
Categorías
Más información sobre Whos en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!