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 次查看(过去 30 天)
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?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Zernike Polynomials 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by