필터 지우기
필터 지우기

plot(t,rx(:,6),'r:',t,y)

조회 수: 8 (최근 30일)
U Chon Cheang
U Chon Cheang 2022년 10월 21일
편집: Torsten 2022년 10월 22일
Hi, I have two questions on this code. Could someone please help me figure it out what does it do?
What does the (:,6) do to "rx" in this code?
What is the 'r'? It looks like a name but it is not showing in the figure after the plot comes out.
Here is the line of the code: plot(t,rx(:,6),'r:',t,y)
The whole code is available on: https://au.mathworks.com/help/phased/ref/phased.timedelaylcmvbeamformer-system-object.html

채택된 답변

Torsten
Torsten 2022년 10월 21일
편집: Torsten 2022년 10월 22일
What does the (:,6) do to "rx" in this code?
What is the 'r'? It looks like a name but it is not showing in the figure after the plot comes out.
It means: plot the 6th column of the array rx against t in red (r) with a dotted line (:).
But in such cases: The proof of the pudding is in the eating. Be courageous and test it out - the computer won't take damage.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by