matlab - 如何在 Matlab 中绘制 3D 平面?

标签 matlab plot

我想使用从 3 个点计算出的矢量绘制平面,其中:

pointA = [0,0,0];
pointB = [-10,-20,10];
pointC = [10,20,10];

plane1 = cross(pointA-pointB, pointA-pointC)

如何在 3D 中绘制“plane1”?

最佳答案

下面是使用 fill3 绘制平面的简单方法:

points=[pointA' pointB' pointC']; % using the data given in the question
fill3(points(1,:),points(2,:),points(3,:),'r')
grid on
alpha(0.3)

enter image description here

关于matlab - 如何在 Matlab 中绘制 3D 平面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13464304/

相关文章:

c++ - 代码/文本编辑器不需要实际的程序本身吗?

r - 每个模型的 AIC 直方图

python - 多个 y 尺度,但只有一个启用了平移和缩放

python - 使用 Bokeh 将图例定位在绘图区域之外

matlab - 条形图 x 轴标题不适用于许多条形图

math - 自定义轴刻度 - "Reverse"对数?

python - "fails to import module"在 Ubuntu 18.04 上运行 sphinxcontrib-matlabdomain 的 test_data 示例时

matlab - 调整图像大小并保留纵横比

r - 在 R 中扩展绘图轴的长度?

c++ - TSP解决方案解读