Effacer les filtres
Effacer les filtres

How can I write ln in Matlab?

14 vues (au cours des 30 derniers jours)
Hdez
Hdez le 22 Jan 2021
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

Réponses (1)

Cris LaPierre
Cris LaPierre le 22 Jan 2021
MATLAB uses log for natural log and log10 for log base 10.
See documentation for log and log10.

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by