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
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
Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Lecture 3
Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Lecture 3
Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Lecture 3
Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Lecture 3
Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Lecture 3
Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Lecture 3
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
Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Lecture 3
Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Lecture 3
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
Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Lecture 3
THE TRANSPOSE OPERATOR Islamic University of Gaza Faculty of Engineering Civil Engineering Department THE TRANSPOSE OPERATOR Computer Programming Lecture 3
ARRAY ADDRESSING Islamic University of Gaza Faculty of Engineering Civil Engineering Department ARRAY ADDRESSING Computer Programming Lecture 3
Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming Lecture 3