Solve non-linear systems of equations to create matrix of coeffients and solve variable

2 Ansichten (letzte 30 Tage)
This is the function I am attempting to use to answer part 1 I am not sure how to find the answer to 1 and 2
syms x
  1 Kommentar
Steven Lord
Steven Lord am 3 Dez. 2022
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free MATLAB Onramp tutorial to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Stephan am 3 Dez. 2022
If i assume, that you have a linear system, because i think, that x1...x4 does not mean x^1...x^4 then you are nearly there:
syms x [4 1]
eqns = 
equationsToMatrix has an addtional output argument:
A = 
b = 
You should check if this is really a nonlinear system you have given.

Community Treasure Hunt

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

Start Hunting!

Translated by