MATLAB: I want to Put a number in plot function for loopplotplotting hello , I drawn alot of hexagons shapes by for loop and it depends on the input ,I want to make in plot statement numbers for each hexagon can you help plz. Best Answer I'd use sprintf()myText = sprintf('The number is %.2f', theNumber);text(x, y, myText); Related SolutionsMATLAB: How to put legend I am sure this will help you - https://www.mathworks.com/help/matlab/creating_plots/add-legend-to-graph.html MATLAB: Insert Text in plot text(x,y,'yourtext') Related QuestionHow can a put a variable into a text stringHow to edit a plotText in 3D plotHow to put errorbarsHow to plot such a graph in matlab
Best Answer