I am trying to plot a function while showing the four quadrants. I understand there were previous workarounds with listeners and what nots but the other "solutions" were given over 3 years ago. I liked the clean undocumented solution:
%// vertical line
hx = graph2d.constantline(0, 'LineStyle',':', 'Color',[.7 .7 .7]);
changedependvar(hx,'x');
%// horizontal line
hy = graph2d.constantline(0, 'Color',[.7 .7 .7]);
changedependvar(hy,'y');
Unfortunately, it does not work any more in Matlab R2014b.
Is there an official way to achieve this kind of plot in MATLAB R2014b?