Clear Filters
Clear Filters

Info

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

Make 3 lines with different values at Y axis

2 views (last 30 days)
Idra
Idra on 1 Nov 2012
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi!
I want to ask, how to make 3 lines at y axis on the bar graph?
I have this command:
clear
y=[0.0975 0.1270 0.2785 0.6324 0.8147 0.9058 3.6330];
x=[1 2 3 4 5 6 7]; k=bar(x,y,'b'); xlabel('Sorted Contrast'); ylabel('Contrast Value');
and I want to make 3 different lines at y axis and the values are:
L1 =0.7759
L2 =0.6174
L3= 0.3897
However, I dont know how to make it. Is there any suggestions?

Answers (1)

Rick Rosson
Rick Rosson on 1 Nov 2012
>> doc line

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!