Project

Row and Column Matrix

% Various methods for Row-vector making

a= [ 1 2 3 4 5] %entering direct values

a1= [1,2,3,4,5] % using commas to seperate the elements

b=1:50 %incremental without the use of \'\'[]\'\'

c=[1:50] %Incremental with \'\'[]\'\'

c=[1:0.1:2] % With an increment of 0.1

a= rand(1,5) %using random command to create a random (1,5) matrix

% Various methods for Colomn-vector making

a= [1; 2 ; 3 ;4; 5;6] % entering direct values

b= rand(6,1) % to craeate a matrix of 1 row and 6 columns

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.