cross product of two points

1 回表示 (過去 30 日間)
Mos_bad
Mos_bad 2018 年 2 月 26 日
回答済み: James Tursa 2018 年 2 月 26 日
I am trying to do the cross product of the following two points but I got this error 'Subscript indices must either be real positive integers or logicals'. p1 = [-2 -3 -1 ] and p22 = [-1 0 -2]

採用された回答

Birdman
Birdman 2018 年 2 月 26 日
cross(p1,p22)

その他の回答 (1 件)

James Tursa
James Tursa 2018 年 2 月 26 日
You probably have inadvertently created a variable named "cross". Delete this variable that is shadowing the MATLAB function "cross", and then the MATLAB function should work.

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by