Undefined function 'initDistPar' for input arguments of type 'double'.
古いコメントを表示
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
2012 年 11 月 15 日
Run:
dbstop if error
Then when the debugger stops:
which -all initDistPar
The output of this will enlighten you.
Andrew Wileman
2012 年 11 月 15 日
0 投票
3 件のコメント
Sean de Wolski
2012 年 11 月 15 日
Is there a clear somewhere? Is it defined inside of a function and not returned to the caller workspace?
I would recommend putting a break point on the line you create it, and then step to see what happens to it between point A (creation) and point B (not being found).
Andrew Wileman
2012 年 11 月 15 日
Walter Roberson
2012 年 11 月 15 日
And double check the spellings in all places.
カテゴリ
ヘルプ センター および File Exchange で Language Support についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!