Borrar filtros
Borrar filtros

3D markers in a scatter3 plot

3 visualizaciones (últimos 30 días)
Jessica
Jessica el 18 de Ag. de 2011
Respondida: Abhinaya Kennedy el 11 de Jun. de 2024
I am working on a scatter3 plot to visualize PCA data. However, my current plot has 2D markers (circles) for each data point. Instead, I'd like to use a 3D marker (sphere) for each data point. Is that possible? I don't see a sphere option as marker type in scatter3 plot info, so I would imagine I have to do some programming to make this happen. My attempts so far have failed. Any suggestions?

Respuestas (1)

Abhinaya Kennedy
Abhinaya Kennedy el 11 de Jun. de 2024
You may create small balls using a "sphere" as follows :
You may also use "scatter3" to generate 3D markers using the "filled" option :

Categorías

Más información sobre Surface and Mesh Plots 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