How can I write ln in Matlab?

조회 수: 19 (최근 30일)
Hdez
Hdez 2021년 1월 22일
답변: Cris LaPierre 2021년 1월 22일
How can I write ln in this part of my code as I keep getting an error. Thank yon
%Gaussian parameters
M= (1+nc)/2; %M= mean number
SD= sqrt (-(j-M)^2/(2*ln(20/100))); %SD= standard derivation
Error in Code2 (line 44)
SD= sqrt (-(j-M)^2/(2*ln(20/100))); %SD= standard derivation

답변 (1개)

Cris LaPierre
Cris LaPierre 2021년 1월 22일
MATLAB uses log for natural log and log10 for log base 10.
See documentation for log and log10.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by