what do '--' and '-.' mean?

3 次查看(过去 30 天)
Estefania Garcia
Estefania Garcia 2020-9-25
what do '--' and '-.' mean? I'm new to using Matlab, and I came across this while looking at some examples.

采纳的回答

Adam Danz
Adam Danz 2020-9-25
编辑:Adam Danz 2020-9-25
These are line styles.
Also check out the LineSpec input to the plot function.
plot(X,Y,LineSpec)
  3 个评论
Adam Danz
Adam Danz 2020-9-25
In the command window, type
help length
It tells you the length of t.
Now try
help :
Using the syntax 2:n, the colon operator counts from 2 and stop at or just before n by intervals of 1.
1.2 : 5
% ans =
% 1.2 2.2 3.2 4.2

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by