Some camera adapters have the ability to flip the image up/down and left/right. I don't know if yours does but you can look for that capability in imaqtool.
It is time for you to read the getting started tutorials about MATLAB. In there you will have learned to use indexing, and such basic ideas as the colon operator.
Best Answer