How to create axis with perfect square ticks
Show older comments
What should I do to plot my data along a y axis such as this:

Accepted Answer
More Answers (1)
yticks((1:50).^2)
if you just want to change the labels you can use
yticklabels((1:50).^2)
Categories
Find more on Axis Labels 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!