Turn off the dispaly of the values on Yaxis

1 view (last 30 days)
Hello,
I was wondering if it is possible to just turn off the values from 0 to 160 on Yaxis, but remaining the grid and Ticks?
I tried:
set(gca,'XTick',[], 'YTick', [])
but it removes the grid.
fig1.JPG
Thanks for your time,
Tiago

Accepted Answer

KSSV
KSSV on 3 Jun 2019
set(gca,'yticklabel',[])

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!