Plotting planes and their intersection in 3D
1) plotPlanes.m
- plots planes and lines in 3D defined either by directional vectors or by normal vectors.
Example:
A = [1 1 0;0 0 1]; Ashift = [1 1 1];
B = [1 1 1]; C = [1 1 0]
plotPlanes(A,'d',Ashift,B,'Normal',C)
======================================
2) plotIntersection.m
- plots intersection of planes/lines. Only planes/lines going through (0,0,0) (i.e. unshifted) can be plotted (due to functionality of findIntersection.m).
Example:
A = [1 1 0;0 0 1];
B = [1 1 1];
plotIntersection(A,B)
plotIntersection(A,'Normal',B)
Cite As
Ondrej (2024). Plotting planes and their intersection in 3D (https://www.mathworks.com/matlabcentral/fileexchange/32063-plotting-planes-and-their-intersection-in-3d), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Polar Plots >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.