Filter löschen
Filter löschen

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

8 Ansichten (letzte 30 Tage)
U Chon Cheang
U Chon Cheang am 21 Okt. 2022
Bearbeitet: Torsten am 22 Okt. 2022
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

Akzeptierte Antwort

Torsten
Torsten am 21 Okt. 2022
Bearbeitet: Torsten am 22 Okt. 2022
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.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by