[X,Y,Z] = peaks;figureL3 = contour(X,Y,Z,10);hold onq = 0;L1= plot (xlim,[1 1]*q,':b','LineWidth',2);a=0L2= plot ([1 1]*a,ylim,':k','LineWidth',2);legend([L2 L3],{'First Time Arrival','Maximum wave peak'})
Hi..I want to show legend of particular plotted items only. But then I got error message as follow "Error using matlab.graphics.chart.primitive.Line/horzcat Cannot convert double value -5.21739 to a handle". How to solve it? Thank you
Best Answer