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에 대해 자세히 알아보기

태그

질문:

2020년 9월 25일

댓글:

2020년 9월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by