Inserting Output of Equations into Matrix
1 次查看(过去 30 天)
显示 更早的评论
I'm looking to evaluate several equations and put the output of these equations into a matrix to eventually solve this matrix.
The matrix I'm looking to output is as follows:
| -2 1+B 0 | * | theta 1 | = | 0 |
| 1-B -2 1+B | | theta 2 | | 0 |
| 0 1-B -2 | | theta 3 | | 0 |
With B being .35*n
n is first evaluated at 2
This matrix needs to be able to adjust in size and n changes
0 个评论
回答(1 个)
Walter Roberson
2019-12-12
Since n appears to be an input, you appear to be trying to solve three simultaneous equations for the single value, theta. Because your right hand side is all 0, you are looking for the null space of the matrix. However, the matrix is full rank except when n is +/- 20/7 * sqrt(-1) so there is no null space, and the only solution is theta = 0 .
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!