How to plotone single 3D vector in MATLAB
2 次查看(过去 30 天)
显示 更早的评论
How to plot one single vector in MATLAB
2 个评论
Geoff Hayes
2018-8-23
Anu - you may need to provide some context. Do you just have one vector? What are its dimensions? Have you looked at plot3?
采纳的回答
Pierre845
2018-8-24
A 3D vector has got 3 coordinates for Point 1, and 3 coordinates for Point 2. Point1(x1,y1,z1) Point2(x2,y2,z2)
Take X = [x1 x2]; Y = [y1 y2]; Z = [z1 z2]
Doing Plot3(X,Y,Z) will plot a 3D vector.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!