필터 지우기
필터 지우기

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?
  댓글 수: 1
Walter Roberson
Walter Roberson 2013년 8월 25일
How would the program know what argument content to pass to the function name that the user had arbitrary chosen?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Maintain or Transition figure-Based Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by