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

2 ビュー (過去 30 日間)
Estefania Garcia
Estefania Garcia 2020 年 9 月 25 日
コメント済み: Estefania Garcia 2020 年 9 月 26 日
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
Estefania Garcia
Estefania Garcia 2020 年 9 月 26 日
Thank you!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by