To create a column vector with the numbers 1, 2, and 3 as components in MATLAB, you can use the following code:
main.m27 chars2 lines
To create a row vector with the numbers 1, 2, and 3 as components, you can use the following code:
main.m24 chars2 lines
In a row vector, the numbers are separated by commas, whereas in a column vector, they are separated by semicolons.
gistlibby LogSnag