maybe I found it, but I am not sure: a = -2; b = 3; n = 6; B = 3.5; y = B .^ linspace(a, b, n) Answer from Sim on mathworks.com
🌐
MathWorks
mathworks.com › matlab › language fundamentals › matrices and arrays
logspace - Generate logarithmically spaced vector - MATLAB
y = logspace(a,pi,n) generates n points between 10^a and pi. ... Create a vector of 50 logarithmically spaced points in the interval [10^1,10^5]. ... Create a vector of 7 logarithmically spaced points in the interval [10^1,10^5]. ... Create a vector of complex numbers with 8 logarithmically ...
🌐
MathWorks
mathworks.com › matlabcentral › answers › 579159-logarithmic-scale-with-a-different-base
Logarithmic scale with a different base - MATLAB Answers - MATLAB Central
August 13, 2020 - https://www.mathworks.com/matlabcentral/answers/579159-logarithmic-scale-with-a-different-base#answer_766412 · Cancel Copy to Clipboard · For a natural log base, try: logspace(0, log10(exp(1)),100) To generate a spaced set of 100 samples that ...
🌐
MathWorks
mathworks.com › matlab › mathematics › elementary math › exponents and logarithms
log2 - Base 2 logarithm and floating-point number dissection - MATLAB
Exponent values, returned as a scalar, vector, matrix, multidimensional array, table, or timetable of the same size as X. The values in F and E satisfy X = F.*2.^E. This function corresponds to the ANSI® C function frexp() and the IEEE® floating-point standard function logb(). Any zeros in X produce F = 0 and E = 0. ... The log2 function fully supports tall arrays. For more information, see Tall Arrays. This function fully supports thread-based environments. For more information, see Run MATLAB Functions in Thread-Based Environment.
🌐
Rice
ece.rice.edu › ~dhj › courses › elec241 › matlab.html
Matlab Tutorial
The following defines a 2 ... ones(n,m). The first returns an nxm matrix of zeros, the second a matrix of ones. For example, the frequency response of a first-order RC circuit has the form 1/(j2 pi fR C + 1). In Matlab, this complex-valued quantity would be quite easily computed. >>f=logspace(1,4,100); >>H=ones(1,100)./(j*2*pi*f*R*C+1);
🌐
Ubiquity
r.ubiquity.tools › reference › logspace.html
Implementation of the logspace Function from Matlab — logspace • ubiquity
logspace(a, b, n = 100) a · initial number · b · final number · n · number of elements (integer >=2) vector of numbers from a to b with n logarithmically (base 10) spaced apart ·
🌐
Ucdavis
atonal.ucdavis.edu › resources › docs › matlab › public › utils › logspace2.html
Description of logspace2
LOGSPACE Logarithmically spaced vector. LOGSPACE(X1, X2) generates a row vector of 50 logarithmically equally spaced points between decades 2^X1 and 2^X2. If X2 is pi, then the points are between 2^X1 and pi. LOGSPACE(X1, X2, N) generates N points. For N < 2, LOGSPACE returns 2^X2.
Find elsewhere
🌐
Rdrr.io
rdrr.io › cran › matlab › man › logspace.html
logspace: MATLAB logspace function in matlab: 'MATLAB' Emulation Package
July 1, 2024 - / logspace: MATLAB logspace function · View source: R/logspace.R · Generate logarithmically spaced vectors. logspace(a, b, n=50) Useful for creating frequency vectors, it is a logarithmic equivalent of linspace. Returns vector containing containing n points logarithmically spaced between ...
🌐
MathWorks
mathworks.com › matlabcentral › answers › 2075386-logarithmically-space-a-vector
Logarithmically space a vector - MATLAB Answers - MATLAB Central
January 28, 2024 - At first I though to use logspace instead of linspace but logspace uses base 10. So if I switched it the range would actually be 10^50 to 10^8000 which I do not want. Should I just recaculate what log values are closest to these numbers or is there a better way? Thank you for your time! ... Sign in to comment. Sign in to answer this question. ... https://www.mathworks.com/matlabcentral/answers/2075386-logarithmically-space-a-vector#answer_1398686
🌐
RunMat
runmat.com › docs › reference › logspace
logspace | MATLAB Language Function Reference | RunMat
February 25, 2026 - The first element is exactly 10^a ... × 0 empty row vector. Every element equals 10^a. For example, logspace(2, 2, 4) returns [100 100 100 100]....
🌐
Rice
elec241.rice.edu › matlab-tutorials
MatLab Tutorials | ELEC 241 - Rice University
LOGSPACE(d1, d2, N) generates N points. See also LINSPACE, :. The usual mathematical functions are defined, like sin, cos, exp, and log (log means natural logarithm; log10 and log2 mean base ten and base two logarithms respectively). The argument of most Matlab functions can be vectors, and the usual result is applying the function to element.
🌐
Stack Overflow
stackoverflow.com › questions › 8131028 › logspace-containing-specific-points-matlab
Logspace containing specific points (Matlab) - Stack Overflow
In Matlab, I can use logspace(A,B,N) to generate a vector of length N, containing points between 10^A and 10^B evenly spaced along a logarithmic axis. However, because of the nature of the logarithm,