我正在使用八度,它免費的僞MATLAB。 我的問題是這樣的:我想填充我的散點圖的氣泡,以及放置一個圖例。但是,當我嘗試使用「填充」時出現錯誤,並且在使用圖例(...)時沒有傳說。我的代碼 部分看起來是這樣的:Octave(MATLAB),scatterplot圖例和填充不工作
%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');
,但是當我這樣做,我收到錯誤。另外,一個傳奇似乎永遠不會出現。
預先感謝您。