Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Mark the order of locations using plot3

1 Ansicht (letzte 30 Tage)
mec123
mec123 am 23 Aug. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hi,
i made the following Script:
A=[10 20 30 40]
B=[40 50 60]'
M=[1 4 3 74; 5 56 17 38; 90 1 11 49]
N=[11 62 13 14; 15 36 17 18; 15 20 31 2]
O=[82 32 4 61; 5 20 37 71; 39 69 36 22]
figure;
hold;
grid on;
xlabel('M');
ylabel('N');
zlabel('O');
for i = 1:length(B)
plot3(M(i,:), N(i,:), O(i,:),'o','DisplayName',sprintf('B=%i',B(i)));
view(40,35)
end
legend('show');
everything is fine,i can distinguish the B-values of each respective entry by different colors and a legend. But how can i mark the A-values of each location? The first blue dot has to be additionally related to A1, the second blue dot to A2 and so on... Clicking the dots in the figure only displays the values M,N and O. Is there a way to add an A to identify the line? I hope i could express myself sufficiently, please let me know if you need further informations...

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by