exp function no longer working.

2 visualizaciones (últimos 30 días)
Jason
Jason el 27 de En. de 2020
Comentada: Jason el 27 de En. de 2020
Hello, I'm suddenly getting an error plotting a Gaussian function through the exp command:
fitGaus = a*exp(-0.5*((xdataFine-b)/c).^2)+d;
The only thing I have done is add all my matlab programs ever created to the path using the add path tool (2019b0
unrecognised function or variable 'exp'
I have checked the exp function:
>> which exp
built-in (C:\Program Files\MATLAB\R2019b\toolbox\matlab\elfun\@double\exp) % double method
and opening this gives:
%EXP Exponential.
% EXP(X) is the exponential of the elements of X, e to the X.
% For complex Z=X+i*Y, EXP(Z) = EXP(X)*(COS(Y)+i*SIN(Y)).
%
% See also EXPM1, LOG, LOG10, EXPM, EXPINT.
% Copyright 1984-2005 The MathWorks, Inc.
% Built-in function.
Is it possible I have another exp somewhere and if so how can i reset it?
Thnaks
Jason
  2 comentarios
Walter Roberson
Walter Roberson el 27 de En. de 2020
restoredefaultpath
Jason
Jason el 27 de En. de 2020
Thankyou

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by