m working on matlab gui. how can we specify the user defined function. and call this function in the program. explanation is as below:
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i m using the switch statement and i have added the following functions in the popup menu:
intensity, blur moment, zernike moments and others
i've the .m file of these functions. when i choose the blur invariant from popup menu then it will the call the .m file function having the name of the function is blurIInvariants having 7 arguments in it..
similarly, when i choose zernike moment then it will call the .m file with the name of the function as zernikMoments having 3 arguments in it and so on.
it is very time consuming to list all the functions in popupmenu and then placing in switch statement.
i want that when i choose the OTHERS option from popup menu after pressing the OTHER pushbutton then it will ask the name of function and its number of arguments.
i.e if the i entered the name of the function as localPattern number of arguments 3 then
the code sholud be
LBP=localPattern(oneblock,2,3)
here 2 and 3 are the values of the second and third argument of the function respectively.
similarly if a enetred a function name with 4 arguments then it should be adjusted automatically. in other words arguments of the function should be changed accordingly.
i donot know can u tell me how to do so?
1 commentaire
Walter Roberson
le 25 Août 2013
How would the program know what argument content to pass to the function name that the user had arbitrary chosen?
Réponses (0)
Voir également
Catégories
En savoir plus sur Zernike Polynomials dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!