필터 지우기
필터 지우기

??? Undefined function or variable 'funfcn'. Error in ==> mini at 1 [y, farr]= uq_dist(fu​nfcn,-20,2​0,12,1,-5,​0.001,0,2,​4) EDU>>

조회 수: 1 (최근 30일)
Ruqayya
Ruqayya 2014년 10월 13일
댓글: Ruqayya 2014년 10월 14일
??? Undefined function or variable 'funfcn'.
Error in ==> mini at 1
[y, farr]= uq_dist(funfcn,-20,20,12,1,-5,0.001,0,2,4)
EDU>>
how can we call a function when its input argument is funfcn

답변 (1개)

Geoff Hayes
Geoff Hayes 2014년 10월 14일
Ruqayya - how are you calling uq_dist? You have to supply a function handle to some function that is the first parameter to the above function. For example
funfcn = @myFunction;
where (according to the code you supplied at your previous post at 158389), funfcn is a source density function given in an m-file with at most three parameters, p1,p2,p3.
If this code is from Contemporary Communication Systems Using MATLAB, then there should be some examples that illustrate the use of the uq_dist function and the parameters that are passed to it.
  댓글 수: 1
Ruqayya
Ruqayya 2014년 10월 14일
yes, but i have no examples how can i call a function when it is having a parameter funfcn

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

카테고리

Help CenterFile Exchange에서 Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by