Info

此问题已关闭。 请重新打开它进行编辑或回答。

Mark the order of locations using plot3

1 次查看(过去 30 天)
mec123
mec123 2016-8-23
关闭: MATLAB Answer Bot 2021-8-20
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...

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by