2%> Return a set of unique real spacings linearly-spaced
3%> in the logarithmic scale in the input given base,
4%> between the specified lower and upper bounds.
6%> \param[in] loglb : The input scalar MATLAB real containing
7%> the natural logarithm of the lower bound
8%> of the output logarithmically-linear spaced vector.
9%> \param[in] logub : The input scalar MATLAB real containing
10%> the natural logarithm of the upper bound
11%> of the output logarithmically-linear spaced vector.
12%> \param[in] logskip : The input scalar MATLAB real of value larger than ``1``
13%> containing the natural logarithm of the spacing between
14%> the natural logarithm of the output values.<br>
15%> (**optional**,
default = ``(logub - loglb) / 100``)
16%> \param[in] base : The input scalar MATLAB real
17%> containing the base of the logarithmic space.<br>
18%> (**optional**,
default = ``exp(1)``)
21%> ``array`` : The output vector of MATLAB real values containing
22%> the set of logarithmically-spaced values in the
23%> specified input range with the specified ``base``.
28%> array = pm.array.logspace(loglb, logub)
29%> array = pm.array.logspace(loglb, logub, logskip)
30%> array = pm.array.logspace(loglb, logub, [], base)
31%> array = pm.array.logspace(loglb, logub, logskip, base)
36%> \include{lineno} example/array/
logspace/main.m
38%> \include{lineno} example/array/
logspace/main.out.m
43%> \JoshuaOsborne, May 21 2024, 4:33 PM, University of Texas at Arlington<br>
44%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
45%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute
for Computational Engineering and Sciences (ICES), UT Austin<br>
46function array =
logspace(loglb, logub, logskip, base)
54 logskip = (logub - loglb) / 100;
57 array = base .^ ((loglb : logskip : logub));
58 %array = base .^ ((loglb : logskip : logub) ./ log(base));
60 array = exp(loglb : logskip : logub);
function logspace(in loglb, in logub, in logskip, in base)
Return a set of unique real spacings linearly-spaced in the logarithmic scale in the input given base...