"

8 How to assign and create vectors:

How to assign and create vectors:

1. To assign a vector type the vector you wish to assign into the command window (ex: if x is the variable,
then type x = into the command window).

2. Next, open a square bracket using your keyboard and input the number(s) you wish to assign to the vector.
(note: ensure each number is separated using a space or comma)

3. Next close the bracket and press enter on your keyboard, the vector should now appear in both the
command window and the workspace section.

 

License

Tech Tangerine Guide - Matlab Copyright © by pranjalsaloni. All Rights Reserved.