exp function no longer working.

조회 수: 3 (최근 30일)
Jason
Jason 2020년 1월 27일
댓글: Jason 2020년 1월 27일
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
Walter Roberson
Walter Roberson 2020년 1월 27일
restoredefaultpath
Jason
Jason 2020년 1월 27일
Thankyou

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

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by