# Line Plot with Highest value in the middle

1 view (last 30 days)
Toyese Ayorinde on 26 May 2022
Answered: Toyese Ayorinde on 26 May 2022
Hi,
Please how can I make a plot with the highest value in the middle while the lowest values at the bottom and top
For example
y -axis has [0, 5, 0]
Thanks
##### 1 CommentShowHide None
dpb on 26 May 2022
plot([0, 5, 0],'-')
maybe?

Sign in to comment.

### Answers (2)

DGM on 26 May 2022
Edited: DGM on 26 May 2022
You mean
y = [0, 5, 0];
plot(y)
If you mean something else, you'll have to elaborate.
##### 4 CommentsShowHide 3 older comments
dpb on 26 May 2022
MATLAB axes are unidirectional by definition and can't be anything else -- and it doesn't make any sense, either.
If the y-axis were to be double-valued, which 700 value is to be used for any given set of x,y data? It's not defined only by the y value, but by the ordinal position in the vector, apparently.
All you could do in this case is plot the data in the time vector and then label tick values correspondingly as wanted independent of what the actual tick values are or have overlaying axes with independent scales and plot into the axes of choice for which piece of the data is associated with that section.

Sign in to comment.

Toyese Ayorinde on 26 May 2022
Ok!
I got your point.
Thanks
##### 0 CommentsShowHide -1 older comments

Sign in to comment.

### Community Treasure Hunt

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

Start Hunting!