MATLAB plot's MarkerIndices property
问题 How can I use MarkerIndices with plot ? 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 message Error using plot There is no MarkerIndices property on the Line class. Error in plotting3 (line 4) plot(x, y, 'color', 'blue', ... 回答1: MarkerIndices became available in R2016b version. The workaround is plotting two times: MarkerIndices =