MATLAB - 2D Plotting
You want to plot multiple data sets but only show plots where y-values are positive. How can you combine
hold on with conditional plotting?hold on with conditional plotting?plot(x, y1) plots all y1 values.plot(x(y2>0), y2(y2>0)) plots only points where y2 is positive.hold on to combine plots and hold off afterhold on to filter plots = D [OK]hold on to filter plots [OK]hold on and hold off15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions