Project

Creating a row and column vector in Matlab

semi colon plays a critical role while dealing with matrices.

so for Row matrix, we just need some space between the numbers.In simple words a SPACE comes in between 2 numbers.

A = [1 2 3 4]

>> A = 1 2 3 4

similarly for column matrix, SEMI COLEN must come in between

B = [1;2;3;4]

B = 1

2

3

4

Moreover all the numbers should be in square brackets as we know how we write matrix.

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.