필터 지우기
필터 지우기

Invalid first data argument

조회 수: 3 (최근 30일)
Aaron Zhou
Aaron Zhou 2020년 9월 11일
댓글: Aaron Zhou 2020년 9월 11일
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 ?

채택된 답변

Adam Danz
Adam Danz 2020년 9월 11일
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
Aaron Zhou
Aaron Zhou 2020년 9월 11일
Thanks a lot, that helped!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by