Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
Row vectors:
Row vectors are created by enclosing the set of elements in square brackets, using space or comma to delimit the elements.
r1 = [1 2 3 4 5] OR r1 = [1,2,3,4,5]
Output:−
r1 =
1 2 3 4 5
Column Vectors:
Column vectors are created by enclosing the set of elements in square brackets, using semicolon to delimit the elements.
col = [1;2;3;4;5]
Output:−
col =
1
2
3
4
5