我正在使用八度。我的问题是:我想填充散点图的气泡,并放置一个图例。但是当我尝试使用时出现错误'filled'
,并且在我使用时没有出现图例legend(...)
。我的部分代码如下所示:
%ALL SAMPLES, PHI(Signal) @ THETA(Sample)=0
figure(5)
plot( Angles(:,1)([18:27]), ALL([18:27]), 10, [1 0 1]); %Magenta
hold on
scatter(Angles(:,1)([68:76]), ALL([68:76]), 10, [0 0 0]); %Black
scatter(Angles(:,1)([86:95]), ALL([86:95]), 10, [1 0 0]); %Red
scatter(Angles(:,1)([119:127]), ALL([119:127]), 10, [0 1 0]); %Green
scatter(Angles(:,1)([133:141]), ALL([133:141]), 10, [0 0 1]); %Blue
hold off
xlabel('Signal PMT angle (Sample angle at 0)');
ylabel('Normalized (signal/monitor) intensity');
legend('Control', 'Control', '1+2','Virgin','Cycle #1', 'Location','NorthEast');
title('Plot of All Samples, "-int Intensity"')
我知道它应该是plot( Angles(:,1)([18:27]), ALL([18:27]), 10, [1 0 1], 'filled');
,但是当我这样做时我收到错误。此外,传奇似乎永远不会出现。