MATLAB: How to change y axis label with percentage

percentagey axis

I would much appreciate some help with this. I have the code, written below, and I want to change to the y-axis label to be something like yaxis = [-50 0 50 100] and these values in %. I managed to get the y-axis values with percentages but I didn't manage to change to my desired interval. I would like something like the image attached, but with % included. any thoughts?
x = [1,2,3,4,5,6,7,8];
y = [2.8, 3.33, 4.8,2.1,2.5,0.35,3.4,1.6];
figure
plot (x,y,'*');
a = [cellstr(num2str(get(gca,'ytick')'))];%convert y-axis values to percentage values
pct = char(ones(size(a,1),1)*'%');%create a vector of '%' signs
new_yticks = [char(a),pct]; %append the '%' signs after the percentage values
set(gca,'yticklabel',new_yticks) %reflect the changes on the plot
ax = gca;
ax.YGrid = 'on'
xlabel('Patient');
ylabel('Percent Difference');

Best Answer

x = [1,2,3,4,5,6,7,8];
y = [2.8, 3.33, 4.8,2.1,2.5,0.35,3.4,1.6];
figure
ax = axes;
plot (x,y,'*');
set(ax, 'YTick', [-50, 0, 50, 100], 'YLim', [-50, 100]);
ytickformat(ax, 'percentage');
ax.YGrid = 'on'
xlabel('Patient');
ylabel('Percent Difference');
Alternatively:
ytickformat(ax, '%g%%');