O'Reilly logo

MATLAB® by Example by Francis Lilley, Munther Gdeisat

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2

Scalars in Matlab

Chapter Outline

Lesson 2.1 Creating and Naming Matlab Scalar Variables 

Lesson 2.2 Approximation of Numbers and Discrete Mathematical Operations 

Lesson 2.3 Mathematical Expressions for Scalar Variables

Lesson 2.4 Relational and Logical Operations for Scalar Variables

Lesson 2.5 Complex Scalar Variables

Answers to Selected Exercises

Lesson 2.1 Creating and Naming Matlab Scalar Variables

Objectives

• To learn how to create scalar variables using Matlab.

• To differentiate between Matlab special variables and user-defined variables.

Topics

2.1.1 Matlab Special Variables

2.1.1.1 Using Matlab Special Variables

2.1.1.2 Changing the Values of Matlab Special Variables

2.1.2 User-Defined Variables

2.1.2.1 Naming a User-Defined ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required