Azzera filtri
Azzera filtri

How to get the vector end point?

9 visualizzazioni (ultimi 30 giorni)
Jiyeon Jang
Jiyeon Jang il 7 Giu 2022
Risposto: M.B il 7 Giu 2022
When I defined the vector in matlab, I gave it direction and size. Like this.
VEC_Gm = 40 ;
VEC_Gu = [ 1 ; 0 ; 0 ] ;
VEC_Em = 20 ;
VEC_Eu = [ 0 ; 1 ; 0 ] ;
VEC_Gc = VEC_Eu*VEC_Em ;
Can we calculate the end point of the each vector through matlab?

Risposte (1)

M.B
M.B il 7 Giu 2022
Appologies if I misunderstood your question. A sketch could help understand what you want to do.
I assume VEC_Gc is the cross product of the other vectors.
Your vector is defined by direction and size, but what is the origin?
If the origin is (0,0,0), then the endpoint coordinates are the same as the values defining your vectors:
VEC_Gu = [40 ; 0 ; 0 ]
VEC_Eu = [ 0 ; 20 ; 0 ]
VEC_Gc = cross(VEC_Eu, VEC_Em)

Categorie

Scopri di più su Operators and Elementary Operations in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by