f = figure;
ax = axes(f);
h = plot(ax,rand(5,1),rand(5,2));
legend(ax);
set(h(1),'linestyle','none','marker','x')
set(h(1),'ydata',nan(5,1))
%legend(ax,'off')
legend(ax,h(2))