How to change the marker type of a 3D scatterplot with respect to the labels?

3 vues (au cours des 30 derniers jours)
SC
SC le 3 Avr 2019
Hi,
I have the below 3D scatterplot. I want to change the marker type with respect to the different labels (e.g. plot.markertype=['+','*'];) , but I got the error No public property markertype exists for class matlab.graphics.chart.primitive.Scatter. How can I change the marker type?
Thanks!
x=[1,2,3,4]';
y=[5,2,7,8]';
z=[9,8,4,2]';
labels=[0,0,1,1]';
figure
color=[not(labels), labels, 0*labels];
plot=scatter3(x,y,z,40,color);
four_pts.jpg

Réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits


Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by