Passing Arguments from functions in GUI
1 次查看(过去 30 天)
显示 更早的评论
Hello, I have a problem. When working with GUI for a face detection code, I want to pass the number of faces to another function .The scenario is given below
==========================
%%--- Executes during object creation, after setting all properties.%%
function facedet_CreateFcn(hObject, eventdata, handles)
detectfaces(some arguments);
displayfaces(some arguments);
%%end of face detection calling function
==========================
%%--- Executes during object creation, after setting all properties.%%
function classify_CreateFcn(hObject, eventdata, handles)
disp('Total no of detected faces=');
{ My problem is here. I want to get the value of no of faces from the function displayfaces() and do some calculation, How can I get that done??? }
=======================
%display faces function
function displayfaces(some arguments)
no of faces=xxx;
====================
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!