I have plotted one random thousand points on an axis. I have also plotted a line y=1/x. Now I am trying to display the points below the line in blue and the points above the line in orange. I have tried using an if loop but have not been successful. Any ideas how I could do this? Thanks
MATLAB: Approximation of e using random points
ifloopplotvectorizationvectorized codevectorizing
Best Answer