MATLAB: How to plot graphs with for loop

for loopplot

I'm a beginner with MatLab. Please help with following problem. I'm trying to plot all 9 graphs on one diagram. I tried:
for x = 0.1:0.9;
y = 0.0525*(10-0.5*(sqrt(1-x)));
end
hold on;
box on
plot(x,y(1,:),'r', 'LineWidth', 1.15);
title('Plots with Different y-Scales');
xlabel('Output');
ylabel('Price');
hold off;

Best Answer

xvals = 0.1 : 0.1 : 0.9;
for xidx = 1 : length(xvals)
x = xvals(xidx);
y(xidx) = 0.0525*(10-0.5*(sqrt(1-x)));
end