I am plotting a 3d scatterplot.
I don't understand why the markers don't appear in the legend, any suggestion?
colors = colormap('colorcube');colors = colors(1:5:end,:);markers = 'osd*p';figure('Position',[200 200 800 600])hold on;for eIDX = 1:size(eList,1) data = DataPP{strcmp(DataPP.hello,eList{eIDX}),BestfeatList(1:3)}; plot3(data{:,1}, data{:,2}, data{:,3},'Color',colors(eIDX,:),'Marker',markers(eIDX),'Linestyle','none');endxlabel(featNames{BestfeatList(1)},'Interpreter','none')ylabel(featNames{BestfeatList(2)},'Interpreter','none')zlabel(featNames{BestfeatList(3)},'Interpreter','none')grid on;legend(eList,'Location','EastOutside'); legend boxoffview([30 7])title('Three best features')
Best Answer