Home > freetb4matlab > linear-algebra > cross.m

cross

PURPOSE ^

% Compute the vector cross product of two 3-dimensional vectors

SYNOPSIS ^

function z = cross (x, y, dim)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn  {Function File} {} cross (@var{x}, @var{y})
% @deftypefnx {Function File} {} cross (@var{x}, @var{y}, @var{dim})
% Compute the vector cross product of two 3-dimensional vectors
% @var{x} and @var{y}.
%
% @example
% @group
% cross ([1,1,0], [0,1,1])
%      @result{} [ 1; -1; 1 ]
% @end group
% @end example
%
% If @var{x} and @var{y} are matrices, the cross product is applied 
% along the first dimension with 3 elements.  The optional argument 
% @var{dim} forces the cross product to be calculated along
% the specified dimension.
% @seealso{dot}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003