How can I plot a python equivalent list of tuples in matlab?

7 Ansichten (letzte 30 Tage)
Benjamin Rodriguez
Benjamin Rodriguez am 10 Sep. 2020
Beantwortet: KSSV am 10 Sep. 2020
If I have a list of (x,y) coordinates in python, for example points=[(38.5,647),(25.4,621),(34.7,873)], how can I create a list of coordinates and then plot them?

Antworten (1)

KSSV
KSSV am 10 Sep. 2020
P = [38.5 25.4 34.7
647 621 873] ;
plot(P(1,:),P(2,:))

Kategorien

Mehr zu Call Python from MATLAB 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