Invalid array indexing. Column 77. Help

8 visualizaciones (últimos 30 días)
Binh
Binh el 26 de Mayo de 2023
Respondida: VBBV el 26 de Mayo de 2023
quiver3(position(1), position(2), position(3), normalAcceleration * cross(velocity, acceleration)(1), normalAcceleration * cross(velocity, acceleration)(2), normalAcceleration * cross(velocity, acceleration)(3), 'g', 'LineWidth', 1.5);
Error: File: plotIntersection.m Line: 40 Column: 77
Invalid array indexing.
I don't know how to fix it. Help me, pls.

Respuestas (1)

VBBV
VBBV el 26 de Mayo de 2023
delete the (1), (2) & (3) after cross function and place it inside as shown
quiver3(position(1), position(2), position(3), ...
normalAcceleration * cross(velocity(1), acceleration(1)), normalAcceleration * cross(velocity(2), acceleration(2)),...
normalAcceleration * cross(velocity(3), acceleration(3)), 'g', 'LineWidth', 1.5);

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