I have two mfiles. One mfile (gui.m) is gui with buttons (for browse and result) and edittext component. another mfile (function.m) with looping function. when i run function.m, i want to return the result to edittext in gui.m
in function.m:
function a = function (f) i=f; %i is browsed image from gui.m
%this loop result that i want to call to edittext
w=[]; k=0; for ... w=[a b]; k=k+1; endenda=w; %to return the result a as w
in gui.m:
function resultButton_Callback(hObject, eventdata, handles) set(handles.edit5); covImg= handles.covImg; %covImg is browsed image
G = function(covImg); %call function.m
guidata(hObject,handles); handles.covImg = G; imshow(handles.covImg);
looking forward for any response. thanks in advance.
Best Answer