Sign In | Subscribe
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of MATLAB
  • Discussion

  • Study Guides

  • Download Lecture Slides

  • Table of Contents

  • Related Books

Bookmark and Share
Lecture Comments (1)

0 answers

Post by candace castro on March 6, 2015

What is double precision?

Operator, Expression & Statements

  • MATLAB has been called an expression based language, it interprets and evaluates typed expressions. Expressions are constructed from a variety of things, such as numbers, variables, and operators.
  • MATLAB has 14 fundamental data classes. The default numeric data type is double-precision.
  • Several operations might be combined into a single expression, MATLAB has strict rules about which operations are performed first in such cases, these are called precedence rules, and you can find them in the following table.
    • Precedence: 1   Operator: Parentheses (round brackets)
    • Precedence: 2   Operator: Power, left to right
    • Precedence: 3   Operator: Multiplication and division, left to right
    • Precedence: 4   Operator: Addition and subtraction, left to right
  • Expression: an expression is a formula consisting of variables, numbers, operators and function names.
  • Statements: a statement usually has the form: variable = expression

Operator, Expression & Statements

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

  • Intro 0:00
  • Scratchpad 0:14
  • Expressions 0:54
    • Numbers
  • Eps 3:03
    • Realmin
    • Realmax
  • Data Types 3:37
    • Default Data Types
    • Double Precision
  • Precedence of Operators 4:19
  • What Are Arithmetic Operators? 4:49
  • Combining Operations 5:24
  • Precedence Rules 5:36
    • Parenthesis
    • Power, Multiplication and Division
    • Addition and Subtraction
    • Arithmetic Operation on Arrays
  • Expressions 8:21
    • Ans
  • Statements 9:19
    • Multiple Statements