add plot_logistic_dual.m