File Exchange

image thumbnail

Plotting planes and their intersection in 3D

version 1.3 (4.59 KB) by

Function 'plotPlanes' plots planes/lines in 3D; 'plotIntersection' plots intersection of the planes.

0 Downloads

Updated

View License

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)

Comments and Ratings (0)

Updates

1.3

small change in description

1.2

change in description

1.1

small change in example

MATLAB Release
MATLAB 7.9 (R2009b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video