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

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?

답변 (1개)

KSSV
KSSV 2020년 9월 10일
P = [38.5 25.4 34.7
647 621 873] ;
plot(P(1,:),P(2,:))

카테고리

도움말 센터File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

태그

질문:

2020년 9월 10일

답변:

2020년 9월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by