To create a column vector in MATLAB, you can use the colon operator with semicolons to separate the elements. For example:
main.m82 chars3 lines
You can also use the transpose (') operator to create a column vector from a row vector. For example:
main.m147 chars6 lines
Note that the transpose operator can also be written as a period followed by the apostrophe (.').
main.m92 chars3 lines
Either method will result in the same column vector:
main.m52 chars8 lines
gistlibby LogSnag