Logical operators

?

% L1 op L2????? % L1 and L2 are expressions or variables

?

% Yield logical results that is TRUE OR FALSE

?

% Operator???????????? Operations

% &???????????????????? Logical AND

% &&??????????????????? Logical AND with shortcut evaluation

% l????????????? ??????? Logical inclusive OR

% ll??????????????????? Logical inclusive OR with shortcut evaluation

% xor?????????????????? Logical Exclusive OR

% ~???????????????????? Logical NOT


要查看或添加评论,请登录

Takudzwa Murisa的更多文章

  • Relational operators

    Relational operators

    % 1. Arithmetic operator % 2.

  • Pseudocode

    Pseudocode

    % PSEUDOCODE % Constructs - used to build an algorithm % Pseudocode - a hybrid mixture of MATLAB and English % Example…

  • MATLAB program design process

    MATLAB program design process

    % PROGRAM DESIGN PROCESS % 1. Clearly state the program that you are trying to solve.

  • Logical function

    Logical function

    % Returns TRUE or False % Function Purpose % ischar(a) Returns TRUE if a is a character array and FALSE % otherwise. %…

  • Logical data type

    Logical data type

    % 1. Arithmetic operator % 2.

  • Hierarchy of operations

    Hierarchy of operations

    % 1. Arithmetic operator % 2.

  • Hierarchy of arithmetic operations

    Hierarchy of arithmetic operations

    % 1. The contents of all parenthesis are evaluated, starting from the % innermost parentheses and working outward.

社区洞察

其他会员也浏览了