How can I access menu features on a program that runs in MATLAB from another script?

I'm trying to create a script that will access menu features on a program that runs in MATLAB. How do I access the different menu options for my script?

댓글 수: 7

Rob, it would help if you said what the program is and what you mean by a menu feature (do you mean an input argument to the function?).
hi Andrew thanks for the reply,sorry about the vagueness of my question, its a gait recognition program, called gaitrec, and when you start it you get a menu screen with different options to allow you to input the sequence of photos to the database, delete photos and other options, i want to run a script so i can add lots of different photos, and compare each set of people so i can test how well the software works, so the first menu option is 'select image sequence' i need to be able to call that up when i run the script.
Do you have access to the source code for gaitrec ?
Hi Walter. yes i do.
With source, I would suggest looking at the callback for that menu item, and calling it yourself. If it involves a routine that does not have its own .m file and thus cannot be called by name, then you can findobj() the menu control and get() the Callback property in order to retrieve the handle you would need.
Are you trying to write automated tests for your GUI or are you simply trying to drive the UI without having a user drive it for the functionality?
im trying to run tests for analysis, i just want to have an automated script that adds photos to the database then make the program test photos to see if it will successfully add it to the ones in the database.

댓글을 달려면 로그인하십시오.

카테고리

제품

태그

질문:

2011년 1월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by