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.