I want to save the assigned labels in a 3d scatter plot
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have 180 coordinates x,y,z. and I assigned labels from 1:180. This shows that I have 180 coordinate points. After the plot, It plots like a rectangular matrix with the labels (used text function to assign the labels on the plot) at different positions according to the the coordinates.
I want to save the rectangular matrix with the assigned labels in the plot. I want the map of labels as a matrix.
2 comentarios
Dyuman Joshi
el 3 de Dic. de 2023
"I want to save the rectangular matrix with the assigned labels in the plot."
Save as what? an array? or in a data file e.g. excel? or something else?
Respuestas (1)
Sulaymon Eshkabilov
el 3 de Dic. de 2023
If understood your question, is this what you are to get with your plot:
D = readtable('DBOOK.xlsx');
X = D{:,2};
Y = D{:,3};
Z = D{:,4};
S = repmat(100,numel(X),1);
Size_M=S(:);
scatter3(X,Y,Z, Size_M);
text(X, Y, Z, D.Parameter, 'Vert','bottom', 'Horiz','left', 'FontSize',11)
xlabel('X values')
ylabel('Y values')
zlabel('Z values')
2 comentarios
Dyuman Joshi
el 5 de Dic. de 2023
Editada: Dyuman Joshi
el 5 de Dic. de 2023
@RAJA SEKHAR BATTU How did you assign the labels?
Can you share your code that produced the above plot?
Ver también
Categorías
Más información sobre Axis Labels en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!