3
如何使用MarkerIndices
和plot
?MATLAB圖的MarkerIndices屬性
x = linspace(-10,10,101);
y = sin(x);
plot(x, y, 'color', 'blue', ...
'LineStyle','-', ...
'Marker', 's', ...
'MarkerIndices', [1, 5, 10], ...
'MarkerEdgeColor', 'black',...
'MarkerFaceColor','yellow');
錯誤消息
Error using plot
There is no MarkerIndices property on the Line class.
Error in plotting3 (line 4)
plot(x, y, 'color', 'blue', ...
什麼是版本? – Masoud
@Masoud,版本2015a。 – anonymous