MATLAB: Asking User a Question with Variables

changing inputeasyhelpuser inputvariables

Why does this not work? How do I ask the user questions involving changing variables?

Best Answer

solution:
answer=inputdlg({'nodes'});
nodes=str2double(answer(1,1));
nodematrix=Inf(nodes);
A=0;
B=1;
while A<nodes
B=B+1;
A=A+1;
answer=input(['Enter resistance between ',num2str(A),' and ',num2str(B)])
end