Info

This question is closed. Reopen it to edit or answer.

How to show many values in a plot via command

1 view (last 30 days)
Ivan Mich
Ivan Mich on 13 Oct 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
Hello,
I am trying to use a command in matlab in order to show on a plot many values (foe example Maximum Value etc)
I am using these commands
dummyh = line(nan, nan, 'Linestyle', 'none', 'Marker', 'none', 'Color', 'none');
legend(sprintf('A = %0.3f','))
But it works only for 1 quantity.
Could anyone knows how to change this command in order to work?
For example I sent you an image I find in the netInkedfffff_LI.jpg
  4 Comments
Turlough Hughes
Turlough Hughes on 13 Oct 2019
You want to put the text into your plot?
use text()
Ivan Mich
Ivan Mich on 13 Oct 2019
I am affraid that it is no use. The quantities i would like to add with the format that the picture I send has ia an outcome from commands of a code. For example I have
x=[1,2,1,4,5,6] and y=[5,6,7,9,10,15]
and
mx=max(x)
my=max(y)
I would like to add the values of max(x) and max(y) together on the plot(x,y)

Answers (0)

Community Treasure Hunt

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

Start Hunting!