フィルターのクリア

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