MATLAB: Prompt for variables in an equation

prompt for variables in an equation

Hello,
I am new here and to Matlab so here is my question. How do I promp a user for variables in an equation and after the answer is given to loop back again in order to enter new variable?
example:
promp for r
promp for h
r^2*acos((r-h)/r)-(r-h) * sqrt(2*r*h-h^2)
answer =
Loop

Best Answer

while true
r = input('How about sending an r value over this way?');
h = input('Groovy. Got a spare h value too?');
r^2*acos((r-h)/r)-(r-h) * sqrt(2*r*h-h^2)
end