When I use fplot with LineWidth a dashed thick gray line appears on the right edge o the box. Example
h=fplot(@(u) u.*exp(u),[-6,1],'r-','LineWidth',3)
Without Linewidth the picture is OK
Best Answer
The gray line (that is always present (although it changes with the LineWidth parameter) indicates that the function increases or decreases without bound at that point.
There is no direct way to remove it, however you can get the XData and YData values from the fplot function and plot them separately:
ThecriticalAlpha method computes that you should use an alpha slightly greater than 1 to get all the points in 'one-region'. Giving it a bit extra leeway, I chose to use 1.03:
Best Answer