MATLAB Basics : Vector Row & Column
1. AIM :
- To write a code to display a vector row and vector column.
- OBJECTIVE :
- The objective of this project is to write a code which initially displays a 3x3 matrix and then it extracts only a vector row (which is matrix ‘b’) and a vector column (which is matrix ‘c’).
- In this project I have used MATLAB as a programming Language.
3. CODE :
clear
close all
clc
a = [1 2 3;4 5 6;7 8 9];
% Calling for a vector Row
b = a(1,:);
% Calling for a vector Column
c = a(:,1);
4. OUTPUT :