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

4

Arrays in Matlab

Chapter Outline

Lesson 4.1 Creating Arrays

Lesson 4.2 Relational and Logical Operations on Arrays

Lesson 4.3 Accessing Elements in Arrays

Lesson 4.4 Arithmetical Operations on Arrays

Lesson 4.5 Plotting Arrays

Answers to Selected Exercises

Lesson 4.1 Creating Arrays

Objectives

• To learn how to create arrays in Matlab manually.

• To learn how to create arrays in Matlab automatically.

Topics

4.1.1 Introduction

4.1.2 Creating Arrays Manually

4.1.2.1 Creating Arrays Manually: Row-By-Row

4.1.2.2 Creating Arrays Manually: Column-By-Column

4.1.3 Creating Arrays Using the repmat Function

4.1.4 Transpose an Array

4.1.5 Changing Array Dimensions Using the reshape Function

4.1.6 Finding the Size of an Array

4.1.7 Converting an ...

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