%PRECEDENCE   Operator Precedence in MATLAB
%
%   MATLAB has the following precedence for the built-in operators when
%   evaluating expressions (from highest to lowest):
%
%      1. transpose (.'), power (.^), complex conjugate
%         transpose ('), matrix power (^)
%
%      2. unary plus (+), unary minus (-), logical negation (~)
%
%      3. multiplication (.*), right division (./), left
%         division (.\), matrix multiplication (*), matrix right 
%         division (/), matrix left division (\)
%
%      4. addition (+), subtraction (-)
%
%      5. colon operator (:)
%
%      6. less than (<), less than or equal to (<=), greater than
%         (>), greater than or equal to (>=), equal to (==), not
%         equal to (~=)
%
%      7. logical AND (&)
%
%      8. logical OR (|)
%
%   Starting in MATLAB 6.0, the precedence of the logical AND (&)
%   and logical OR (|) operators now obeys the standard relationship
%   (AND being higher precedence than OR) and the formal rules
%   of boolean algebra as implemented in most other programming
%   languages, as well as Simulink and Stateflow.
%
%   Previously MATLAB would incorrectly treat the expression:
%
%      y = a&b | c&d
%
%   as:
%
%      y = (((a&b) |c) &d);
%
%   It now correctly treats it as:
%
%      y = (a&b) | (c&d);
%
%   The only case where the new precedence will impact the result
%   obtained is when | appears before & within the same expression
%   (without parentheses).  For example:
%
%      y = 1 | x & 0;
%
%   In MATLAB 5.3 and earlier, this statement would yield 0, 
%   being evaluated as:
%
%      y = (1 | x) & 0;
%
%   In MATLAB 6.0 and beyond, this expression yields a 1 as the result,
%   being evaluated as:
%
%      y = 1 | (x & 0);
%
%   We strongly recommend that you add parentheses to all expressions of
%   this form to avoid any potential problems with the interpretation
%   of your code between different versions of MATLAB.
%
%  NOTE: A feature has been provided to allow the system to produce an
%  error for any expression that would change behavior from the old to
%  the new interpretation:
%
%  feature('OrAndError', 0)  % warning for any expression that
%                            % changed behavior (default)
%  feature('OrAndError', 1)  % error for any expression that
%                            % changed behavior 
%

%   
%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.10 $  $Date: 2000/06/01 04:26:43 $
