MATLAB Answers

How to show many values in a plot via command

3 views (last 30 days)
Ivan Michael
Ivan Michael on 13 Oct 2019
Commented: Ivan Michael on 13 Oct 2019
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

Show 1 older comment
Ivan Michael
Ivan Michael on 13 Oct 2019
for example I would like to create a plot and on this plot I would like to put some values that are coming out from equations of my matlab code.
Example is in the image I send now
Inkedfffff_LI.jpg
Turlough Hughes
Turlough Hughes on 13 Oct 2019
You want to put the text into your plot?
use text()
Ivan Michael
Ivan Michael 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)

Sign in to comment.

Answers (0)

Sign in to answer this question.