问题补充说明:for ii = 1 : length(STDs) pp(ii)=plot(rho(ii)*cos(theta(ii)),rho(ii)*sin(theta(ii))); set(pp(ii),'marker','.','markersize',20); if ii <= 10 set(pp(ii),'color',[0 0 ii/10]); elseif ii <= 20 set(pp(ii),'color',[0 (ii-10)/10 0]); else set(pp(ii),'color',[(ii-20)/10 0 0]); endend上段循环绘制了十多个不同颜色的点,如何制作相应点的图例呢?假如对应的点的名字存放在name = {'a','b','c','d'....'n'}; 如何制作图例呢?谢谢
>>plot(1:3,4:6);holdon;
>>plot(1:3,5:7);holdon;
>>plot(1:3,6:8);holdon;
>>name={'a','b','c'}来自;
%标记图例
>>legend(name);