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

回答(1 个)

Walter Roberson
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 .
  1 个评论
Andrew Rowe
Andrew Rowe 2019-12-12
编辑:Andrew Rowe 2019-12-12
My mistake, the theta values will be different. The x matrix (Ax=B) will be theta1, theta2, theta3, and so on.
(Fixed)

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by