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 view (last 30 days)
Show older comments
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 Comment
Walter Roberson
on 25 Aug 2013
How would the program know what argument content to pass to the function name that the user had arbitrary chosen?
Answers (0)
See Also
Categories
Find more on Zernike Polynomials in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!