Project

Basic commands in MATLAB

AIM : To create basic commands for row and column vectors in Matlab.

---------- PROGRAM TO CREATE ROW AND COLUMN VECTOR ----------

>> % Lets create a Row Vector

>> A = [0.25, 0.50, 0.75, 1.00]

A =

0.2500 0.5000 0.7500 1.0000

>> % Lets create a Column Vector

>> B = [0.15; 0.30; 0.45; 0.60]

B =

0.1500
0.3000
0.4500
0.6000

>> % Lets create a Row and Column Vector

>> C = [0.25, 0.15; 0.50, 0.30; 0.75, 0.45; 1.00, 0.60]

C =

0.2500 0.1500
0.5000 0.3000
0.7500 0.4500
1.0000 0.6000

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.