Clear Filters
Clear Filters

Inserting Output of Equations into Matrix

1 view (last 30 days)
Andrew Rowe
Andrew Rowe on 11 Dec 2019
Edited: Andrew Rowe on 12 Dec 2019
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

Answers (1)

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

Sign in to comment.

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!