To create a vector running from six to one in MATLAB, you can use the colon operator with a negative step size. Here's how you can do it:
main.m17 chars2 lines
This will create a vector starting from 6 and decrementing by 1 to 1. The resulting vector will be [6, 5, 4, 3, 2, 1].
gistlibby LogSnag