Scatter3 plot to solid model

2 ビュー (過去 30 日間)
Arda Tunçel
Arda Tunçel 2022 年 1 月 15 日
回答済み: Cris LaPierre 2022 年 1 月 15 日
Code given below creates a 3D scatter plot from the relevant equations:
clear;clc;
i=1;
l_c=0.0;
l_0=0;
for q1=-90:1:90
for q2=0.5:0.05:2.5
for q3=0.5:0.05:1.5
V(i,1)=l_c*cosd(q1)+q3*cosd(q1);
V(i,2)=l_c*sind(q1)+q3*sind(q1);
V(i,3)=l_0+q2;
i=i+1;
end
end
end
s=scatter3(V(:,1),V(:,2),V(:,3),...
linspace(1,10,length(V(:,1))),'filled');
It is a code for show a robot manipulator workspace. scatter3 plot is given below (these are the same plot from different angles):
Also, I have uploaded a solid model which I draw with fusion 360 CAD software. Is it possible to create a solid shape from the scatter plot just like the CAD model given below?

採用された回答

Cris LaPierre
Cris LaPierre 2022 年 1 月 15 日
k=boundary([V(:,1),V(:,2),V(:,3)]);
trisurf(k,V(:,1),V(:,2),V(:,3),'EdgeColor','none')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by