How to plot coordinate point in 3d plane in matlab? (scatter3, and pcshow function)

preview_player
Показать описание
figure;
pcshow(column,'r');
hold on
pcshow(column_1,'b');

y=yellow
m=magenta
c=cyan
r=red
g=green
b=blue
w=white
k=black

-------------------------------------------------------------------------------------
How to display the label of each point in the figure?

clear;clc;
k=10; %the total number point
p=rand(k,3); %generate randomly the coordinate of k point
label=cellstr(num2str([1:k]')); %generate k label corresponding to each point
scatter3(p(:,1),p(:,2),p(:,3)); % plot all pts in 3D plane
text(p(:,1),p(:,2),p(:,3),label,'VerticalAlignment','bottom','HorizontalAlignment','right'); %add the label to each point in figure
Рекомендации по теме
Комментарии
Автор

question? how would you get the volume of the figure?

alexeisphr
join shbcf.ru