You can display the percentages inside a graph in MATLAB by first creating a pie chart or bar graph and then using the text
function to display the percentages. Here's an example for a pie chart:
main.m342 chars8 lines
For a bar graph, you can add the percentages on top of each bar using the text
function. Here's an example for a bar graph:
main.m194 chars4 lines
gistlibby LogSnag