MATLAB Answers

how to make label y axis specific?

3 views (last 30 days)
Ibrahim AlZoubi
Ibrahim AlZoubi on 21 Jun 2020
Answered: Sindar on 25 Jun 2020
I want to make y axis as (0 500 1000) how to do it?
i use I use ylim([1 1000])

  0 Comments

Sign in to comment.

Answers (1)

Sindar
Sindar on 25 Jun 2020
% if you want a label at 0, make sure to include it in your limits
ylim([0 1000])
yticks([0 500 1000])

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!