How to display the value of variable X

1 visualización (últimos 30 días)
Rudi Martin
Rudi Martin el 12 de Abr. de 2013
hello...
i'm using MATLAB optimization tool (optimtool), solver is ga-genetic
algorithm. In the option, then plot function, I checked "best individual".
when I start the optimization tool, I get a graph, but the value of the
variable X in the graph was not displayed in numeric form, only in the form
of a bar chart...
how do I display the exact value(number) of the variable X?
thank you, sorry for my bad english =)

Respuestas (1)

Alan Weiss
Alan Weiss el 12 de Abr. de 2013
You can write anything you want as a plot function. Modify the function gaplotbestindiv.m to display the values of the vector (best inidividual) as well as the bar chart.
For more information, see the documentation.
Alan Weiss
MATLAB mathematical toolbox documentation

Categorías

Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by