What do you expect Q.T to be???
- a function of theta and v as you wrote? Then define it as such, delete the evaluation equal sign at the end and you can use that function as you like.
- a neat 25 x 35 matrix of values? Then you will have to program that yourself. It was told you many many times here that you misuse ranges. You can't simply feed ranges in a function and expect a pretty formatted table as a result.
As the ranges in your case are consecutive integers it may work to use them as matrix indices (results depends on the value of ORIGIN) but I strongly advise against doing so as your next question will be how to do it with decimal values in v and theta. - a ????. Then you will have to tell us.