Filter löschen
Filter löschen

How to create a vector from two or three point?

22 Ansichten (letzte 30 Tage)
AnhThu Le
AnhThu Le am 9 Sep. 2017
Kommentiert: Jose Marques am 9 Sep. 2017
a) A(1,2) B(6,3) C (1,5) b)A(5,9,8) B(7,5,4) C(5,7,8) How to create vector AB and AC ?

Akzeptierte Antwort

Jose Marques
Jose Marques am 9 Sep. 2017
A = [1,2]
B = [6,3]
C = [1,5]
AB = B - A
AC = C - A
The same with three points
  3 Kommentare
Jose Marques
Jose Marques am 9 Sep. 2017
function [vector] = calculate_vector(A,B)
vector = B - A;
end

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by