Matlab 逻辑字符查询!

本文介绍了在Matlab中如何使用各种操作字符,包括算术、关系和逻辑运算符,以及特殊字符如冒号、括号等。此外,还详细讲解了短路逻辑AND、OR以及元素级逻辑运算,并提供了矩阵乘法、比较和逻辑操作的示例。

如果遇到与、或、非之类的操作字符,在matlab中不知道怎么输入,你可以:

在命令窗口中输入:

help |

即可显示matlab中操作字符如下:

 Operators and special characters.
 
  Arithmetic operators.
    plus       - Plus                               +   
    uplus      - Unary plus                         +   
    minus      - Minus                              -   
    uminus     - Unary minus                        -   
    mtimes     - Matrix multiply                    *   
    times      - Array multiply                    .*   
    mpower     - Matrix power                       ^   
    power      - Array power                       .^   
    mldivide   - Backslash or left matrix divide    /   
    mrdivide   - Slash or right matrix divide       /   
    ldivide    - Left array divide                 ./   
    rdivide    - Right array divide                ./   
    kron       - Kronecker tensor product         kron  
 
  Relational operators.
    eq         - Equal                             ==    
    ne         - Not equal                         ~=    
    lt         - Less than                          <     
    gt         - Greater than                       >     
    le         - Less than or equal                <=    
    ge         - Greater than or equal             >=    
 
  Logical operators.
                 Short-circuit logical AND         &&    
                 Short-circuit logical OR          ||    
    and        - Element-wise logical AND           &     
    or         - Element-wise logical OR            |     
    not        - Logical NOT                        ~     
    xor        - Logical EXCLUSIVE OR
    any        - True if any element of vector is nonzero
    all        - True if all elements of vector are nonzero
 
  Special characters.
    colon      - Colon                              :
    paren      - Parentheses and subscripting      ( )             
    paren      - Brackets                          [ ]    
    paren      - Braces and subscripting           { }         
    punct      - Function handle creation           @
    punct      - Decimal point                      .     
    punct      - Structure field access             .     
    punct      - Parent directory                   ..    
    punct      - Continuation                       ...   
    punct      - Separator                          ,     
    punct      - Semicolon                          ;     
    punct      - Comment                            %     
    punct      - Invoke operating system command    !           
    punct      - Assignment                         =
    punct      - Quote                              '     
    transpose  - Transpose                         .'
    ctranspose - Complex conjugate transpose        '
    horzcat    - Horizontal concatenation          [,]    
    vertcat    - Vertical concatenation            [;]    
    subsasgn   - Subscripted assignment          ( ),{ },.  
    subsref    - Subscripted reference           ( ),{ },.  
    subsindex  - Subscript index                              

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值