How to display the value of variable X

1 次查看(过去 30 天)
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 =)

回答(1 个)

Alan Weiss
Alan Weiss 2013-4-12
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

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by