Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Andrew Wileman
Andrew Wileman le 15 Nov 2012
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

Réponses (2)

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

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by