How to create nonlinear spaced vector in Matlab?
<p>I'm trying to create a contour plot with focus around a particular finite range from 1 to 1.05. At the same time, I need very high resolution closer to 1. I thought I could use something like the following but the spacing still looks linear</p>

<pre><code>out=exp(linspace(log(1),log(1.05),100))
plot(diff(out))
</code></pre>

<p>What is the best way to enhance the nonlinearity of the spacing when the bounds are so tight? Again, I need to maintain high density near 1 with the resolution tapering off in a nonlinear way. I have a few ideas but I thought someone might have a quick 2 liner or something of the sort.</p>