Use index as coordinates in a 3D scatter plot
Mostrar comentarios más antiguos
Hi,
I have an n x n x n binary matrix, ex,
A(:,:,1) = [1 0; 0 1]
A(:,:,2) = [1 0;0 0]
I'd like to plot it as a 3D scatter plot with the position of each point determined by the indices of each 1. For example, the previous matrix would yield a scatter plot with points at (1,1,1), (2,2,1) and (1,1,2). What's the most efficient way to do this?
Thanks,
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Scatter Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!