Code covered by the BSD License  

Highlights from
Mastering Mechanics 1: Using MATLAB 5

image thumbnail

Mastering Mechanics 1: Using MATLAB 5


Doug Hull (view profile)


20 Aug 2002 (Updated )

Companion Software

function [outVector]=opp(inVector)
%OPP Returns the equal but opposite vector
%   OPP(VECTOR) returns the vector acting in the opposite direction to the
%   input vector.
%   See also MAG, MOVE.

%   Details are to be found in Mastering Mechanics I, Douglas W. Hull,
%   Prentice Hall, 1998

%   Douglas W. Hull, 1998
%   Copyright (c) 1998-99 by Prentice Hall
%   Version 1.00

[xmag ymag xcor ycor]=breakup(inVector);

outVector=[-xmag -ymag xcor ycor];

Contact us