I can't read UIAxis Exponent value
Mostrar comentarios más antiguos
I spent some time trying to figure out how to read the Axis Exponent value for a project developed with App Deisigner (a great tool btw): https://www.mathworks.com/help/releases/R2021b/matlab/ref/matlab.graphics.axis.decorator.numericruler-properties.html?s_tid=doc_srchtitle#bun6izd-1-Exponent
To be clear, writing a value to Exponent field is not a problem. But reading always returns a 0. UNLESS the Exponent field is written to first.
I suggest allowing Exponent value to be read, or stating in the docs that this is a "write-only" entity. And then after writing, the Exponent value can be read.
My code in the figures also shows my not-so-eligant work-around to read the Exponent value.
See the 4 figures below showing debug values before and after writting to Exponent....
Example:

Figure 1: Exponent initially set to -4

Figure 2: Initial attempt to read Exponent fails (x_exp_bf value should have been -4)

Figure 3: Final Value After Writting -6 to Exponent

Figure 4: Exponent Successfully Saved to x_exp_af After Writting a Value to Exponent First
Conclusion: seems like a bug to have to write to Exponent before reading Exponent.
Respuesta aceptada
Más respuestas (0)
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!
