Basic commands in Matlab
AIM- To create a row and column vector in Matlab
DETAIL INFORMATION- Row Vector or Row Matrix is a type of matrix which only one row i.e in the form of 1 x m
Column Vector or Column Matrix is a type of matrix which has only one column i.e in the form of m x 1
OBJECTIVE- The objective of the program is to type in the commands to create a row and column vector in Matlab.
MATLAB CODE-
clear all
close all
clc
% row matrix
Students_marks=[50 45 78 56 80]
% column matrix
Students_rollnumbers=[101;102;103;104;105]
RESULT- By clicking on RUN feature on Matlab or by pressing F5 on keyboard the program gets compiled or exicuted and the results are as follow.