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
2020-9-10
P = [38.5 25.4 34.7
647 621 873] ;
plot(P(1,:),P(2,:))
类别
在 帮助中心 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!