Borrar filtros
Borrar filtros

cross product of two points

1 visualización (últimos 30 días)
Mos_bad
Mos_bad el 26 de Feb. de 2018
Respondida: James Tursa el 26 de Feb. de 2018
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]

Respuesta aceptada

Birdman
Birdman el 26 de Feb. de 2018
cross(p1,p22)

Más respuestas (1)

James Tursa
James Tursa el 26 de Feb. de 2018
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.

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by