ok button gives error:Subscript indices must either be real positive integers or logicals. Error using waitfor Error while evaluating uicontrol Callback
1 回表示 (過去 30 日間)
古いコメントを表示
Thank you for the help. I have already corrected that mistake. The main issue is that if I am running the code as a standalone code it is running successfully but if the gui and database are connected with the same code, then this type of error is occuring:
"Subscript indices must either be real positive integers or logicals.
Error using waitfor Error while evaluating uicontrol Callback"
and after the error,if the same code ie without gui and database is executed,it continuously gives the same error again and again.
0 件のコメント
回答 (1 件)
Iain
2014 年 2 月 24 日
That error is because, somewhere in your code you've got something like
number = -1;
array(0) or array(1.4) or array(23,0) or array(number)
somewhere in your code.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!