How Can I Plot Multiple Points Without Mathlab Joining Them?
2 ビュー (過去 30 日間)
回答 (4 件)
Hiro Yoshino 2022 年 10 月 21 日
I would suggest that you should use Interactive Live Task for Plot.
Even if you are not familiar with the syntaxes, you can easily find the way out.
The Live Tasks can be converted into MATLAB script in a blink of an eye so that you can leran how to make it in a code manner.
John D'Errico 2022 年 10 月 21 日
Plot is a simple tool. If you give it no direction at all about the line or markers, then it connects the points with a line, and no marker.
plot(1:5,[2 3 5 7 11])
If you specify a line style, here, dashed, it uses that line style, but still no markers.
plot(1:5,[2 3 5 7 11],'--')
If you instead specify the maker only, then it uses a marker at the points.
plot(1:5,[2 3 5 7 11],'o')
And finally, if you specify both a marker and a line style, you see both.
plot(1:5,[2 3 5 7 11],'s:')
Of course, all of this can be found by reading the docs for plot