Defining your own using an equality such as
log9(x) = log(x) / log(9)
looks to be your best option. Answer from Adam on mathworks.com
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 - 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. I'd like to use "a" as a varying number and change it using a loop until I'll get a good result. "a" can be for an example - 1.05, 1.003.... ... Too many input arguments. ... Sign in to comment. Sign in to answer this question. ... https://www.mathworks.com/matlabcentral/answers/1465394-how-do-i-calculate-a-logarithm-of-a-variable-base#answer_800204
Videos
MathWorks
mathworks.com › matlabcentral › fileexchange › 14866-logb
logb - File Exchange - MATLAB Central
September 1, 2016 - Examples: 1) To calculate the base 5 logarithm of 3: y = logb(3,5) 2) To calculate element-wise the log of a non-scalar input using different bases: y = logb(magic(3),[1 2 3; 4 5 6; 7 8 9]); See also: log, log10, log2 · Brett Shoelson (2025). logb (https://www.mathworks.com/matlabcentral/fileexchange/14866-logb), MATLAB Central File Exchange.
MathWorks
mathworks.com › matlabcentral › answers › 1808600-formula-for-changing-the-base-of-a-logarithm-is-loga-n-logb-n-logb-a-a-use-matlab-s-fu
formula for changing the base of a logarithm is: loga(N) = (logb(N))/(logb(a)) (a) Use MATLAB's function log (x) to cal... - MATLAB Answers - MATLAB Central
September 20, 2022 - formula for changing the base of a logarithm is:... Learn more about matlab, log
EDUCBA
educba.com › home › data science › data science tutorials › matlab tutorial › matlab log
Matlab log | Learn the different examples of Matlab log
March 8, 2023 - This is how our input and output will look like in the Matlab command window: ... As we can see in the output, we have the log of 4 to the base “e” as 1.3863, which is the same as expected by us.
Call +917738666252
Address Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
MathWorks
mathworks.com › matlabcentral › answers › 52224-log-of-10-base-b-where-b-is-defined-as-1-to-10-in-increments-of-1
Log of 10 base "b" where 'b' is defined as 1 to 10 in increments of 1 - MATLAB Answers - MATLAB Central
October 29, 2012 - It is for school BTW, and all i know is Log(base'b')(X)=log(base'e')(x) over log(base'b'(b) where be is all values between 1-10. Sign in to comment. Sign in to answer this question. ... https://www.mathworks.com/matlabcentral/answers/52224-log-of-10-base-b-where-b-is-defined-as-1-to-10-in-increments-of-1#answer_63659
MathWorks
mathworks.com › matlab › mathematics › elementary math
Exponents and Logarithms - MATLAB & Simulink
Exponential, logarithm, power, and root functions
Quora
quora.com › How-do-I-use-natural-logarithm-ln-in-matlab
How to use natural logarithm (ln) in matlab - Quora
Answer (1 of 18): The function for ln in matlab is just log. So ln(2) is just log(2). There are some other functions for other bases such as log10, for the usual log base 10. I think for bases other than e, 10, and 2 you have to use the change of base formula.
MathWorks
mathworks.com › matlab › mathematics › elementary math › exponents and logarithms
log10 - Common logarithm (base 10) - MATLAB
Z = 9×4 complex 0.3010 - 0.6822i 0.3142 - 0.5758i 0.3495 - 0.4808i 0.3979 - 0.4027i 0.1761 - 0.6822i 0.1990 - 0.5425i 0.2559 - 0.4268i 0.3266 - 0.3411i 0.0000 - 0.6822i 0.0485 - 0.4808i 0.1505 - 0.3411i 0.2559 - 0.2554i -0.3010 - 0.6822i -0.1505 - 0.3411i 0.0485 - 0.2014i 0.1990 - 0.1397i -Inf + 0.0000i -0.3010 + 0.0000i 0.0000 + 0.0000i 0.1761 + 0.0000i -0.3010 + 0.6822i -0.1505 + 0.3411i 0.0485 + 0.2014i 0.1990 + 0.1397i 0.0000 + 0.6822i 0.0485 + 0.4808i 0.1505 + 0.3411i 0.2559 + 0.2554i 0.1761 + 0.6822i 0.1990 + 0.5425i 0.2559 + 0.4268i 0.3266 + 0.3411i 0.3010 + 0.6822i 0.3142 + 0.5758i 0.
MathWorks
mathworks.com › matlabcentral › answers › 527923-how-to-find-log-with-base-value
How to find log with base value - MATLAB Answers - MATLAB Central
May 20, 2020 - According to the change of base rule for logarithms, you can use the logarithm function of a specific base to find the logarithm of any base where it is defined. For example ... https://www.mathworks.com/matlabcentral/answers/527923-how-to-find-log-with-base-value#comment_852543
Autarkaw
programming.autarkaw.com › ProgrammingConceptsBook › module-4-math-and-data-analysis.html
Module 4: MATH AND DATA ANALYSIS | Introduction to Programming Concepts with MATLAB
cannot use log^-1 in MATLAB to find the inverse of a natural log. The function to find the value of an exponential function is exp(). Find the natural log of 4 and 0.2, and name these outputs \(y1\) and \(y2\), respectively.
EDUCBA
educba.com › home › data science › data science tutorials › matlab tutorial › natural log in matlab
Natural Log in Matlab | Learn How to Compute Natural Log in Matlab
May 31, 2023 - While if the base of the logarithmic equation is represented using e (also known as Euler’s number), then it is known as a natural logarithm. The value of e is given by 2.71828 and it is also denoted by a log. So, we should be careful while using a base in any logarithmic equation. In Matlab, natural logarithm is given by log(y) which represents the natural logarithm of y.
Call +917738666252
Address Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai