필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

loop does not work

조회 수: 1 (최근 30일)
Dzhamshed
Dzhamshed 2012년 8월 8일
마감: MATLAB Answer Bot 2021년 8월 20일
I have got a code which reads .xls file and plots the data, and I want to read and plot data continiously, but the loop is not working(((
function updateAxes (hObject, eventdata, handles)
xColNum = get(handles.popupmenuX, 'value');
yColNum = get(handles.popupmenuY, 'value');
fileName=handles.fileName;
while (1)
a= xlsread(fileName);
x=a(:,xColNum);
y=a(:,yColNum);
plot (handles.axes1,x,y);
pause (5)
end
  댓글 수: 1
Jan
Jan 2012년 8월 19일
"Is not working" is an insufficient description of the problem. Do you get an error message or do the results differ from your expectations? In the later case, describe both, please. It looks like you load and draw the same data repeatedly.

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by