MATLAB: Aligning text in plots

plot labels

how do i move the point label so its aligned right and higher
x = Vb_ev;
y = pH_ev;
plot(x,y,'ro'), text(Vb_ev, pH_ev,'point X')

Best Answer

text(Vb_ev, pH_ev,'Point X', ...
'HorizontalAlignment', 'right', ...
'VerticalAlignment', 'bottom');