Vectors and matrices, MATLAB Programming

Vectors and Matrices:

The Vectors and matrices are used to store sets of values, all of which are similar type. A vector can either be a column vector or a row vector. The matrix can be visualized as a table of values. The dimensions of a matrix are r x c, here r is the number of rows and c is the number of columns. This is pronounced as "r by c." If the vector has n elements, the row vector would have dimensions 1 x n, and a column vector would have the dimensions n x 1. The scalar (one value) has dimensions 1 x 1. And hence, vectors and scalars are actually just subsets of matrices. Here are some diagrams shown below, from left to right, a scalar, a column vector, a row vector, and the matrix:

16_Vectors and Matrices.png

The scalar is 1 x 1, the column vector is 3 x 1 (3 rows by 1 column), the row vector is 1 x 4, and the matrix is 3 x3. All the values stored in these matrices are stored in what are termed as elements.

The MATLAB is written to work with matrices; the name MATLAB is short for "matrix laboratory." For this reason, it is very easy to generate vector and matrix variables, and there are so many operations and functions which can be used on vectors and matrices.

A vector in a MATLAB is equal to what is termed as a one-dimensional array in other languages. The matrix is equal to a two-dimensional array. Generally, even in the MATLAB, some operations which can be performed on either vectors or matrices are referred to as array operations. The word array also is often used to mean generically either a vector or a matrix.

Posted Date: 10/18/2012 4:09:37 AM | Location : United States







Related Discussions:- Vectors and matrices, Assignment Help, Ask Question on Vectors and matrices, Get Answer, Expert's Help, Vectors and matrices Discussions

Write discussion on Vectors and matrices
Your posts are moderated
Related Questions
Write a MATLAB program (using/making the necessary functions that you deem necessary) that does the two following jobs: It generates the following digital modulation schemes. In

Input in a for Loop: The script below repeats the process of prompting the user for a number, and echo printing the number (that means simply printing it back out). A for loop

The purpose of this lab is to enhance the ECE311 student's understanding of filter behavior and filter design and to provide the student the opportunity to demonstrate skills in li

We wish to numerically perform the following integration: (a) Use Matlab's quad function to perform the above integral. (b) Analytically evaluate the integral (e.g. do t

Problem of a projectile being launched at an angle of O at an initial velocity ofv. The equations for the height hand horizontallocation x as functions of time t are as follo

http://messenger.providesupport.com/messenger/ae.html?ps_s=U4nFMQo4BP04

Variable number of output arguments: The variable number of output arguments can also be identified. For illustration, the one input argument is passed to the below function t

Problem: A function is given by Y= 2x3 + 3 x2 -12x + 5 a determine the finite values of x at which any local maximum of minimum occur and determine the corresponding val

A filter described by the equation:    y(n) = x(n) + x(n-1) + 0.9 y(n-1) - 0.81 y(n-2) (a) Find the transfer function H(z) for the filter and find the poles and zeros of the fil