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 日

0 投票

These are line styles.
Also check out the LineSpec input to the plot function.
plot(X,Y,LineSpec)

3 件のコメント

Estefania Garcia
Estefania Garcia 2020 年 9 月 25 日
Thanks! Also do the values ([2:n]) mean?
where t = (0:160)';n = length(t);
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 件)

カテゴリ

ヘルプ センター および File Exchange で Line Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by