TO CREATE A ROW AND COLUMN VECTOR IN MATLAB
OBJECTIVE: CREATE A ROW AND COLUMN VECTOR IN MATLAB.
MAIN CODE:
STEP[1]: We define the value for forming a row matrix.For forming a row matrix we need to leave space between the value or should use comma(,) inbetween the values.
STEP[2]: We define another set of value to form a column matrix.For forming a column matrix we need to use semicolon(;) inbetween the values
STEP[3]: Define the both row and column matrix in an array to form a matrix.
CODING
clear all
close all
clc
%determine row value
a=[19 2 -3 4]
%determine column value
b=[1;2;13;-4]
%determine both row and column value for formation of matrix
c=[-1 23 3;15 6 -37;49 -7 6]
OUTPUT :
RESULT:
Thus we have created a row and column vector in matlab.
https://drive.google.com/open?id=1tFrUMBR5VnVhU03W6_mKpZrshIGDUIPb
https://drive.google.com/open?id=1mvYRaIGp_hKrpJgqZpPmPzSw8H54odmx