Code covered by the BSD License  

Highlights from
Plotting planes and their intersection in 3D

Be the first to rate this file! 16 Downloads (last 30 days) File Size: 4.59 KB File ID: #32063
image thumbnail

Plotting planes and their intersection in 3D

by Ondrej

 

04 Jul 2011 (Updated 06 Jul 2011)

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

| Watch this File

File Information
Description

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)

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
06 Jul 2011

small change in example

06 Jul 2011

change in description

06 Jul 2011

small change in description

Tag Activity for this File
Tag Applied By Date/Time
planes Ondrej 05 Jul 2011 11:23:28
intersection Ondrej 05 Jul 2011 11:23:28
linear algebra Ondrej 05 Jul 2011 11:23:28

Contact us at files@mathworks.com