logB(X) = logA(X) / logA(B) You can pick A to be one of the built in functions, like log or log2 or log10. E.g., log3(9) = log(9) / log(3) , or log3(9) = log10(9) / log10(3) , etc. Answer from James Tursa on mathworks.com
🌐
MathWorks
mathworks.com › matlab › mathematics › elementary math › exponents and logarithms
log10 - Common logarithm (base 10) - MATLAB
Y = log10(X) returns the common logarithm of each element in array X. The function accepts both real and complex inputs. For real values of X in the interval (0, Inf), log10 returns real values in the interval (-Inf ,Inf). For complex and negative real values of X, the log10 function returns ...
🌐
MathWorks
mathworks.com › symbolic math toolbox › mathematics › mathematical functions
log10 - Log base 10 of symbolic input - MATLAB
... Convert symbolic output to double by substituting for x with a number using subs, and then using double. fLog10 = subs(fLog10,x,5); % x is 5 fLog10 = double(fLog10) ... Input, specified as a number, vector, matrix, or array, or a symbolic number, variable, array, function, or expression.
🌐
MathWorks
mathworks.com › matlabcentral › answers › 761576-log-base-10-plot
log base 10 plot - MATLAB Answers - MATLAB Central
March 3, 2021 - C8*U_Ps.^8 + C9*U_Ps.^9 + C10*U_Ps.^10 + ... ... You should consider putting all those C values in an array, so you can more easily add or remove values. Sign in to comment. Sign in to answer this question. Find more on Animation in Help Center and File Exchange ... Find the treasures in MATLAB Central and discover how the community can help you! Start Hunting! ... Choose a web site to get translated content where available and see local events and offers. Based ...
🌐
Johns Hopkins University
math.jhu.edu › ~shiffman › 370 › help › techdoc › ref › log10.html
log10 (MATLAB Function Reference)
Description The log10 function operates element-by-element on arrays. Its domain includes complex numbers, which may lead to unexpected results if used unintentionally. Y = log10(X) returns the base 10 logarithm of the elements of X.
🌐
MathWorks
mathworks.com › matlabcentral › answers › 1465394-how-do-i-calculate-a-logarithm-of-a-variable-base
How do I calculate a logarithm of a variable base? - MATLAB Answers - MATLAB Central
October 2, 2021 - Hi! I tried to calculate a log of a varying base - no success. I saw that calculating log of the base of 10 or e is possible. for an example: after typing log (a,b) - I recieve an ERROR message. ...
Find elsewhere
🌐
MathWorks
mathworks.com › matlabcentral › answers › 140987-how-do-i-write-20logbase10-in-matlab
how do i write 20logbase10 in matlab - MATLAB Answers - MATLAB Central
July 8, 2014 - https://www.mathworks.com/matlabcentral/answers/140987-how-do-i-write-20logbase10-in-matlab#comment_224631 ... Undefined function 'log' for input arguments of type 'uint8'.
🌐
MathWorks
mathworks.com › matlab › mathematics › elementary math
Exponents and Logarithms - MATLAB & Simulink
In addition to common functions like exp and log, MATLAB® has several other related functions to allow flexible numerical calculations. The expm1 and log1p functions compensate for numerical round-off errors in small arguments, while the reallog, realpow, and realsqrt functions restrict the range of these functions to real numbers.
🌐
Quora
quora.com › How-can-I-implement-log-ln-and-e-in-MATLAB
How to implement log, ln, and e in MATLAB - Quora
MATLAB already provides the standard ... reliable approaches. ... Natural log: log(x) returns ln(x) (base e). Base-10 log: log10(x)....
🌐
MATLAB
matlab.izmiran.ru › help › techdoc › ref › log10.html
log10 (MATLAB Functions)
The log10 function operates element-by-element on arrays. Its domain includes complex numbers, which may lead to unexpected results if used unintentionally. Y = log10(X) returns the base 10 logarithm of the elements of X.
🌐
MathWorks
mathworks.com › matlabcentral › answers › 23358-faster-log10-command
faster "log10" command - MATLAB Answers - MATLAB Central
December 8, 2011 - Hi all, Is anyone know how to use the "log10" more wisely? currently, I convert from dB to decimal using log10 but it seems to slow down the execution process. Any help would be appreciated! Ta *...