Matlab Notes_Basics-Matlab學習記筆

Shih Jiun Lin Lv4

Matlab Notes-Basics

Basic Operators and Statements

  1. Basic Operators

    • Array Operations: These operations treat matrices as arrays. They are also known as dot operations because the arithmetic operators are prefixed by a dot ()

    • If the matrix is complex-valued, then the operation of "array transpose" produces a complex-conjugate transposition.

    • The matrices will expand itself when the size of the matrices are not the same.

  2. Indexing Operations

    • The operator "" can be used to generate sequences of numbers as well as to access certain row/column elements of amatrix.

    • Indexing a Matrix

      1
      2
      % Idexing a matrix
      x(rows, columns)

    • Using the fragment , we can generate numbers from a to c in b increments.

      • ex:
    • The fragment accesses elements of x beginning with index a in steps of b and ending at c.

      • ex:
    • References:link

  3. Conditional Statements

    • If Statement

    • Switch Statement

  4. Loop Control Statements

    • For Statement

    • While Statement

  • Title: Matlab Notes_Basics-Matlab學習記筆
  • Author: Shih Jiun Lin
  • Created at : 2024-02-22 11:00:47
  • Updated at : 2024-02-26 23:53:45
  • Link: https://shih-jiun-lin.github.io/2024/02/22/Matlab Notes-Basics/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Matlab Notes_Basics-Matlab學習記筆