ezplane

版本 1.0.2 (1.6 KB) 作者: Matt J
Plot an arbitrary 3D plane given its equation.
1.0 次下载
更新时间 2024/4/1

查看许可证

This submission provides ezplane(), a simple function for plotting a plane given its equation. The equation is represented as a 1x4 vector. Namely, the plane A*x+B*y+C*z+D=0 would be plotted with the syntax ezplane([A,B,C,D]).
Note that the plane needn't necessarily be expressible as a surface z(x,y), as illustrated by Example 2 below. Note also that this function deliberately avoids the use of fimplicit3(), which at this time has problems rendering planes.
Example 1: The unit simplex
ezplane([1,1,1, -1]);
xlabel x; ylabel y; zlabel z; grid on;axis equal
axis([0 1 0 1 0 1]*1.3)
Example 2: Pass additional arguments specifying surface properties
ezplane([1,1/2,0, -1],'FaceColor','red');
xlabel x; ylabel y; zlabel z; grid on;axis equal
axis([0 1 0 1 0 1]*2.1)

引用格式

Matt J (2024). ezplane (https://www.mathworks.com/matlabcentral/fileexchange/161351-ezplane), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2023b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.2

Bug in argument check. Sometimes eqnCoeff vector mistaken for graphics handles.

1.0.1

Description update

1.0.0