MATLAB: Plotting generates hidden figure

MATLABplotting

while plotting i have the following figure, which is hiden. What to do?ray.jpg

Best Answer

Instead of using
fplot(pl_f, [0 10])
use
fplot(real(pl_f), [0 10])
Due to round-off, there are small imaginary quantities that fplot thinks are leading to discontinuities.