Hello, i want to plot a 3d point with - marker. when i use plot3d(x,y,z,'-black') , I don't see anything on the figure but with plot(x,y,z,'.black') i have the right figure. could anyone tell me why please?
(I use matlab 2019b).

 채택된 답변

the cyclist
the cyclist 2022년 8월 10일

0 개 추천

It looks like you used a hyphen instead of an underscore.
x = 1:5;
y = rand(1,5);
z = rand(1,5);
figure
plot3(x,y,z,'black','Marker','_','MarkerSize',16)

댓글 수: 2

ikram loued
ikram loued 2022년 8월 15일
it doesn't work. i have this error
Error using plot3
'_' is not a valid value. Use one of these values: '+' | 'o' | '*' | '.' | 'x' | 'square' | 'diamond' | 'v' | '^' | '>'
| '<' | 'pentagram' | 'hexagram' | 'none'.
the cyclist
the cyclist 2022년 8월 15일
Hm. You can see that the code works here [R2022a].
You mention that you are using R2019b, so I guess it could be a bug that was fixed.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

태그

질문:

2022년 8월 10일

댓글:

2022년 8월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by