make log spacing, specifying the length of the first interval
Show older comments
Hi
Let say I want to divide one second into 10 points, where the first length is 8 ms. How can I do that?
the logspace function does not give the option of defining the length of the first interval.
The closest I can get is logspace(log10(0.1),log10(1),10), but the first invertal is on only 3 ms.
Accepted Answer
More Answers (1)
Youssef Khmou
on 18 Feb 2013
hi, specify the first length :
% Logspace
s=logspace(0,1,10)/10;
s(1)=0.008; % 8 ms
% Or linear Space
s2=linspace(0,1,10);
s2(1)=0.008; % 8ms
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!