I have a 3D plot and two points coordinates A(0,0,0) and B(13,-11,19). I just want to plot a visible line connecting this two points ... I tried plot3(0,0,0, 13,-11,19) and other stuff but everything i tried failed miserably.
相关问题
- Extract matrix elements using a vector of column i
- Is GLFW designed to use without LWJGL (in java)?
- How do you get R's null and residual deviance
- How to display an image represented by three matri
- How to get a fixed number of evenly spaced points
相关文章
- Algorithm for partially filling a polygonal mesh
- Robust polygon normal calculation
- How do I append metadata to an image in Matlab?
- Keep constant number of visible circles in 3D anim
- How can I write-protect the Matlab language?
- `std::sin` is wrong in the last bit
- How do I remove axis from a rotation matrix?
- How to smooth the blocks of a 3D voxel world?
Here's how:
Admittedly, this might seem a bit counter-intuitive at first, but in the long run it'll make sense.
If you read
doc plot
ordoc line
, you'll see that each expects sets ofx
,y
andz
data, respectively. That is, usingwith
X
,Y
andZ
some matrices,plot3
will draw a line from the first triplet (X(1) Y(1) Z(1)
) to the second triplet (X(2) Y(2) Z(2)
) and so on -- same forline
.