フィルターのクリア

how to create a GUI.. ?

3 ビュー (過去 30 日間)
hp
hp 2017 年 6 月 26 日
コメント済み: hp 2017 年 6 月 27 日
i have 2 push buttons created on a GUI panel by dragging ... but how can i execute my M-code by clicking the push buttons. I have one M-file which extracts the Features of folder of images and features are stored in an excel sheet,by clicking the push button this M-file should be run and features should be stored in an excel sheet as said above. and there is another push button with the name "submit QUERY IMAGE' this button after clicking should run my another M-file called "queryimage colormoments" selects the image, calculates the color features of query image and retrieves similar images. so now how can I load my M-files in a respective push button codes.? please help....

採用された回答

Geoff Hayes
Geoff Hayes 2017 年 6 月 26 日
hema - you will want to call your function (m-file) from the pushbutton callback. If you are using GUIDE to create your GUI, see GUIDE push button callback. For example,
function pushbutton1_Callback(hObject, eventdata, handles)
% call your function
myFunction(...); % which may or may not take any input parameters
I'm assuming that your m-files are in fact functions and not scripts.
App Designer Callbacks may also prove useful if you are using App Designer.
  1 件のコメント
hp
hp 2017 年 6 月 27 日
Its working thank you so much sir...

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDisplay Image についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by