Invalid first data argument

3 visualizaciones (últimos 30 días)
Aaron Zhou
Aaron Zhou el 11 de Sept. de 2020
Comentada: Aaron Zhou el 11 de Sept. de 2020
1:
plot3(xV, yV, zV, 'b.', xT, yT, zT, 'r.', ...
a(1), a(2), a(3), b(1), b(2), b(3));
2:
plot3(xV, yV, zV, 'b.', xT, yT, zT, 'r.', ...
a(1), a(2), a(3), 'mx','LineWidth',2,...
b(1), b(2), b(3), 'mx','LineWidth',2);
why '1' is running normal but '2' is not ?

Respuesta aceptada

Adam Danz
Adam Danz el 11 de Sept. de 2020
All of the name-value pairs must come after all other input arguments.
The first syntax is accepted because it follows these supported syntaxes
Specify different name-value properties after plotting by making changes to the handles.
h = plot3(xV, yV, zV, 'b.', xT, yT, zT, 'r.', ...
a(1), a(2), a(3), 'mx', b(1), b(2), b(3), 'mx');
set(h(3:4), 'LineWidth', 2)
  1 comentario
Aaron Zhou
Aaron Zhou el 11 de Sept. de 2020
Thanks a lot, that helped!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Productos


Versión

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by