Display Markers At Specific Data Points
显示 更早的评论
Greetings
when i run this comman
plot(t_010_tbc_r_002,stress_010_01,'-o','MarkerIndices',1:10:length(stress_010_01))
it gives me this error
Error using plot
There is no MarkerIndices property on the Line class.
Error in Results (line 194)
plot(t_010_tbc_r_002,stress_010_01,'--o','MarkerIndices',1:10:length(stress_010_01))
reasons???
2 个评论
Erivelton Gualter
2019-11-18
It does not seems to be wrong.
Run the following code and see if it works fine:
x = linspace(0,10);
y = sin(x);
plot(x,y,'-o','MarkerIndices',1:5:length(y))
Tahir Afareen
2019-11-18
采纳的回答
更多回答(1 个)
the cyclist
2019-11-18
编辑:Steven Lord
2023-10-25
1 个投票
The marker indices functionality was introduced in version R2016b. If you have an older version, then you'll get an error.
[SL: fixed typo in version number]
类别
在 帮助中心 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!