Counting Y axis lines

Hey,
I need the computer to count the lines on the Y axis. I have an excel file that has three variables. does anyone have any algorithm to do this. I have Matlab 2015.

Answers (1)

Matt
Matt on 8 Feb 2018

0 votes

plot(x,y)
ax = gca;
n = numel(ax.YTick);

This question is closed.

Asked:

on 8 Feb 2018

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!