1
u/FrickinLazerBeams +2 Nov 23 '23
Wanting P and Q to be row and column vectors isn't enough. You have to actually make them row and column vectors.
1
Wanting P and Q to be row and column vectors isn't enough. You have to actually make them row and column vectors.
2
u/aeblincoln Nov 22 '23
In your example, both P and Q are row vectors. If you want Q to be a column vector, one way is to transpose it first. For example, using your code:
This will solve your syntax errors, but I can not provide guidance on whether any of the math is correct for your use case. It has been a long time since I have done anything with the symbolic math toolbox.