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

조회 수: 3 (최근 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 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