MATLAB: How to adjust axes

axis and ticksMATLAB

I want to force the maximum y-axis to 30 so that all y values will would be displayed up to 30 and also, with minimum ticks of 5 and major ticks increasing by 10