that code does not work well and every time give the same number 5 times every time and not indexd to be used in an another place thank you
no=5;
x=zeros(no,1);
for i=1:no
waitfor(app.refindexEditField,’value’);
x(i)=app.refindexEditField.Value;
end
app.refindexEditField.Value=inf;
fprintf(‘ %.1f n ‘,x)
plot(app.UIAxes,(1:no)’,x(1:i),’-r’)no=5;
x=zeros(no,1);
for i=1:no
waitfor(app.refindexEditField,’value’);
x(i)=app.refindexEditField.Value;
end
app.refindexEditField.Value=inf;
fprintf(‘ %.1f n ‘,x)
plot(app.UIAxes,(1:no)’,x(1:i),’-r’) no=5;
x=zeros(no,1);
for i=1:no
waitfor(app.refindexEditField,’value’);
x(i)=app.refindexEditField.Value;
end
app.refindexEditField.Value=inf;
fprintf(‘ %.1f n ‘,x)
plot(app.UIAxes,(1:no)’,x(1:i),’-r’) app designer, matlab 2021a MATLAB Answers — New Questions