フィルターのクリア

Passing Arguments from functions in GUI

2 ビュー (過去 30 日間)
Niranjan
Niranjan 2011 年 2 月 23 日
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;
====================

採用された回答

Walter Roberson
Walter Roberson 2011 年 2 月 23 日
Please see the FAQ on sharing data between callbacks.
  1 件のコメント
Niranjan
Niranjan 2011 年 2 月 25 日
It was actually too complicated for me , so I just wrote the values in a text file in one function, read those values in the required function and deleted it. It was quite simple.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by