Project

MATLAB Basics : Vector Row & Column

1. AIM :

  • To write a code to display a vector row and vector column.
  1. 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 :

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.