why am I getting this error?

Error using matlab.ui.control.UIControl/set Invalid or deleted object.
Error in GUI>Start_Callback (line 184) set(handles.TrainText,'String','Loading Train Image # ');
where TrainText is an edit text component my code is as follow:
if true
i = 1;
while (i<=numImage)
aa = imresize(detect_face(imresize(imread(cell2mat(TrainImages{i,1})),[375,300])),imageSize);
img(:,i) = aa(:);
%get(handles.TrainText,'String');
set(handles.TrainText,'String','Loading Train Image # ');
drawnow();
% set(handles.TrainText,'String','Loading Train Image # ');
% drawnow();
disp(sprintf('Loading Train Image # %d',i));
i=i+1;
end
end

1 件のコメント

Rik
Rik 2018 年 3 月 26 日
This seems to be a duplicate for this.

回答 (0 件)

この質問は閉じられています。

質問済み:

2018 年 3 月 26 日

コメント済み:

Rik
2018 年 3 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by