MATLAB: How to divide unequally between two points such that nearby one point the discretization points will be crowded and on the other end it will be uniform

gradientsunequal spacing

I am inserting a figure of my problem. I want to divide in this pattern(values are just cude examples). The sum of the total division must be equal to difference between last term and first term (Here 1.45).
Start value=.05 and last term=1.5. . I have tried with
del_theta=exp(linspace(log(.05),log(1.5),40));
But still the spacing between them starts in the range of 1e-3. I cannot increase the number of divisions to a huge value

Best Answer

theta(1)=0.05;
for n=2:40
theta(n)=theta(n-1)+1e-12*2.016233701097243^(n-1)
end