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

3 Ansichten (letzte 30 Tage)
Estefania Garcia
Estefania Garcia am 25 Sep. 2020
Kommentiert: Estefania Garcia am 26 Sep. 2020
what do '--' and '-.' mean? I'm new to using Matlab, and I came across this while looking at some examples.

Akzeptierte Antwort

Adam Danz
Adam Danz am 25 Sep. 2020
Bearbeitet: Adam Danz am 25 Sep. 2020
These are line styles.
Also check out the LineSpec input to the plot function.
plot(X,Y,LineSpec)
  3 Kommentare
Adam Danz
Adam Danz am 25 Sep. 2020
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 am 26 Sep. 2020
Thank you!!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by