How to 3D plot data points in matlab?
显示 更早的评论
I have three lists of data listed in the workspace in tables that are 8000x1 that will be x, y, and z for the plot I want to make. How can I use these three to create a 3D plot? plot3 and scatter three return these errors:
"Error using scatter3 (line 59) Input arguments must be numeric, datetime, duration or categorical.
Error in PlottingData (line 1) scatter3(x1,y1,z1)"
What should I use to plot this?
4 个评论
Adam
2017-7-17
I've never really used tables, but can't you just extract the relevant columns into numeric arrays?
Sarah Weatherly
2017-7-17
John
2017-7-17
table2array() will get that done. If your table has non-numeric values and numeric values, apply table2array() just on the subset that is numeric.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!