Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter2 Creating Arrays

Similar presentations


Presentation on theme: "Chapter2 Creating Arrays"— Presentation transcript:

1 Chapter2 Creating Arrays
Islamic University of Gaza Faculty of Engineering Civil Engineering Department Chapter2 Creating Arrays The array is a fundamental form that MATLAB uses to store data. Computer Programming Lecture 3

2 1D array: Vector 2D array: Matrix 3D array
Islamic University of Gaza Faculty of Engineering Civil Engineering Department Arrays : May be of various dimensions. A 1D array is called a vector. A 2D array or matrix. We can also have 3D, as well as, ND arrays. In case of a 3D array, imagine a Rubik’s cube with each cell having a value inside it. 1D array: Vector 2D array: Matrix 3D array Computer Programming Lecture 3

3 Islamic University of Gaza Faculty of Engineering
Civil Engineering Department Computer Programming Lecture 3

4 Islamic University of Gaza Faculty of Engineering
Civil Engineering Department Computer Programming Lecture 3

5 Islamic University of Gaza Faculty of Engineering
Civil Engineering Department Computer Programming Lecture 3

6 Islamic University of Gaza Faculty of Engineering
Civil Engineering Department Computer Programming Lecture 3

7 Islamic University of Gaza Faculty of Engineering
Civil Engineering Department Computer Programming Lecture 3

8 Islamic University of Gaza Faculty of Engineering
Civil Engineering Department Computer Programming Lecture 3

9 CREATING A TwO-DIMENSIONAL ARRAY (MATRIX)
Islamic University of Gaza Faculty of Engineering Civil Engineering Department CREATING A TwO-DIMENSIONAL ARRAY (MATRIX) Computer Programming Lecture 3

10 Islamic University of Gaza Faculty of Engineering
Civil Engineering Department Computer Programming Lecture 3

11 Islamic University of Gaza Faculty of Engineering
Civil Engineering Department Computer Programming Lecture 3

12 The zeros, ones and, eye Commands
Islamic University of Gaza Faculty of Engineering Civil Engineering Department The zeros, ones and, eye Commands Computer Programming Lecture 3

13 Islamic University of Gaza Faculty of Engineering
Civil Engineering Department Computer Programming Lecture 3

14 THE TRANSPOSE OPERATOR
Islamic University of Gaza Faculty of Engineering Civil Engineering Department THE TRANSPOSE OPERATOR Computer Programming Lecture 3

15 ARRAY ADDRESSING Islamic University of Gaza Faculty of Engineering
Civil Engineering Department ARRAY ADDRESSING Computer Programming Lecture 3

16 Islamic University of Gaza Faculty of Engineering
Civil Engineering Department Computer Programming Lecture 3


Download ppt "Chapter2 Creating Arrays"

Similar presentations


Ads by Google