Undefined function 'initDistPar' for input arguments of type 'double'.

조회 수: 2 (최근 30일)
Andrew Wileman
Andrew Wileman 2012년 11월 15일
The problem lies in the following code.
param(j,:) = unifrnd(initDistPar(j,1),initDistPar(j,2),1,n);
The initDistPar was defined earlier in the code as
initDistPar = [0.9 1.1; 0 0.05; 0.01 0.1];
I've made sure the path, license etc is all ok.
Please can anybody figure out what the problem may be, its driving me crazy!
Kind regards,
Andy

답변 (2개)

Sean de Wolski
Sean de Wolski 2012년 11월 15일
Run:
dbstop if error
Then when the debugger stops:
which -all initDistPar
The output of this will enlighten you.

Andrew Wileman
Andrew Wileman 2012년 11월 15일
Thanks for your reply Sean.
Strangely, it says 'initDisPar' not found, but this has just been defined four lines above in the program?
  댓글 수: 3
Andrew Wileman
Andrew Wileman 2012년 11월 15일
Cheers Sean, there's no clear. I'll give the breakpoint a go.
Walter Roberson
Walter Roberson 2012년 11월 15일
And double check the spellings in all places.

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by