cross product of two points

1 次查看(过去 30 天)
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

更多回答(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 CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by