Create a row and column vector using Matlab
clear all
close all
clc
Avergage_speed_driven_by_students_in_bike_every_month= [45 32 98 55; 50 68 43 87; 105 84 36 120]
AIM:
To Create a row and column vector in Matlab
SOFTWARE USED: MATLAB R2019B
DATA INPUT: Avergage speed driven by students in bike every month.
CONTENT:
Matrix
Row Vector
Column Vector
Application
Procedure
Code generated
Application of Matlab (Learnings)
Conclusion
MATRIX: A Matrix (plural matrices) is a rectangular array of numbers, symbols or expressions arranged in ROWS and COLUMNS.
COLUMN VECTOR: A column vector or column matrix is an m × 1 matrix.
That is a matrix consisting of a single column of m elements.
ROW VECTOR: A row vector or row matrix is a 1 × m matrix.
That is a matrix consisting of a single row of m elements.
EXAMPLE:
APPLICATION:
A matrix is a convenient and useful way of representing a graph to a computer. Matrices lend themselves easily to mechanical manipulations. Besides, many known results of matrix algebra can be readily applied to study the structural properties of graphs from an algebraic point of view.
PROCEDURE:
STEP1: Open MATLAB.
STEP2: Select Editor window.
STEP3: Input code required to create a row and coulmn vector.
STEP4: Use SAVE option to save your work.
CODE GENERATED:
NOTE: Initially use the basic code
clear all (Previous Worked data are cleared)
close all (Previous Worked graphs are cleared)
clc (Previous Worked commands used in command window are cleared)Avergage_speed_driven_by_students_in_bike_every_month= [45 32 98 55; 50 68 43 87; 105 84 36 120]
APPLICATION OF MATLAB (LEARNING): By using matlab we learned to create 3x4 Matrices.
CONCLUSION: We conclude that using simple code and steps are followed to create a Row and Column vector.
SNAP SHOT MATLAB WORKING:
REFERENCE:
https://www.slideshare.net/TaofirShuvo/use-of-matrix-in-engineering
https://en.wikipedia.org/wiki/Matrix_(mathematics)
https://en.wikipedia.org/wiki/Row_and_column_vectors