Clear Filters
Clear Filters

What does the following error means

1 view (last 30 days)
lakom Mariem
lakom Mariem on 23 Nov 2017
Answered: Jan on 23 Nov 2017
Hello everyone please i need your help I have this error in my code and I couldn't know what does it mean and how to correct it. You can see here my code and the following error
for ind = 1:length(x)
Pout_ideal_af_f(ind,:) = functionOutageFormula(x(ind),alpha1,alpha2,beta1,beta2,b1,b2,c,d);
end
the error is :
Undefined function or variable 'functionOutageFormula'.
Error in fig2fig3newlook (line 272) Pout_ideal_af_f(ind,:) = functionOutageFormula(x(ind),alpha1,alpha2,beta1,beta2,b1,b2,c,d);

Answers (1)

Jan
Jan on 23 Nov 2017
The error message seems to be clear and easy:
Undefined function or variable 'functionOutageFormula'.
There is no M-file called "functionOutageFormula.m" and no local function with this name also. A bold guess is, that you want "OutageFormula" instead.
You have read the message also. Then please explain, why you assume that "functionOutageFormula" is an existing function. Maybe you have created such a function, but forgot to include its parent folder in th Matlab path? Then see doc addpath.

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!