How to plot the complete data in a structure
显示 更早的评论
Hi all,
The following picture is the screenshot of a structure. I want to plot all X Y X coord of this structure, but my code can only plot the X Y Z coord in the 9th row of the structure

And my code is presented here:
for m = 1 : 9
scatter3(BM(m).X_coord(:),BM(m).Y_coord(:),BM(m).Z_coord(:),40,'filled');
end
Is there a solution to plot all the xyz coordinates of these 9 rows in one figure?
Many thanks in advance for help!
1 个评论
Adam Danz
2021-11-17
It would be easier to understand the struct if you attach it in a mat file or supply code that recreates a similar structure.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!