 <p>as @nkjt pointed out: </p> <p>Do you know the difference between <code>/</code> and <code>./</code></p> <p>If you want to divide pointwise, you have to use the <code>./</code>, otherwise you will get the result of the vector</p> <p><strong>(1+(x/2))</strong> divided by <strong>(1+(x/2))</strong></p> <p>What you want is:</p> <p><code>x = linspace(0,3); y1 = (1+(x/2))./(1-(x/2)); figure, plot(x,y1)</code></p>