[英]Show the data points on top of the curve in MATLAB plotting?
我如下使用MATLAB將一系列點繪制到曲線中。
x = [1 4 6 8 0 2 4 7 8]
plot(x, 'blue')
我現在想在曲線頂部顯示這些點。 我努力了
x = [1 4 6 8 0 2 4 7 8]
plot(x, '.blue')
但這不是我想要的,因為我希望曲線仍然是實心的,並且點顯示曲線上的數據。
我該怎么辦?
還要在linespec
字符串中添加'-'
行的規范
plot( x, '.-b' );
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.