No BSD License  

Highlights from
Plot a plane or line in 3D

image thumbnail
from Plot a plane or line in 3D by Calvin Price
User specifies two independent vectors, and the corresponding plane is graphed.

ta=normalize(x)
function ta=normalize(x)
% NORMALIZE - return vector with unit length

if ~(nargin==1)
    error('Input should be just one vector')
end



ta=x/norm(x);


Contact us at files@mathworks.com