COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Help With Solving a System of Non-Linear Equations

• Follow

```Hi I am a student at Stony Brook University and am working on a project for my Heat and Mass Transfer class but am unsure of how to solve a non-linear system of equations in MATLAB. The course the University provided for familiarization with MATLAB didn't go further than linear systems of equations. My equations are the following:

[Underscore denotes subscript, and "^" denotes power)

T_0 = 95 C
T_&#8734; is known
&#8710;x is known
T_surr is known
&#949; is known
&#963; is known
h is known
p is known

For m = 1 to 5
(T_(m-1)-&#12310;2T&#12311;_m+T_(m+1))/&#12310;&#8710;x&#12311;^2 +hP(T_&#8734;-T_m )+&#949;&#963;P(T_surr^4-(T_m+273)^4 )=0

For m = 6
hA(T_&#8734;-T_m )+&#949;&#963;A(T_surr^4-&#12310;(T_m+273)&#12311;^4 )+kA (T_(m-1)-T_m)/&#8710;x=0

This gives me 6 equations with 6 unknowns (T1 to T6) but how do I enter these into MATLAB to use with their solver? I am sure this is a very basic question but I am really stumped by it. Any help is appreciated!

-John H
```
 0

```> Hi I am a student at Stony Brook University and am
> working on a project for my Heat and Mass Transfer
> class but am unsure of how to solve a non-linear
> system of equations in MATLAB. The course the
> University provided for familiarization with MATLAB
> didn't go further than linear systems of equations.
> My equations are the following:
>
> [Underscore denotes subscript, and "^" denotes power)
>
> T_0 = 95 C
> T_∞ is known
> ∆x is known
> T_surr is known
> ε is known
> σ is known
> h is known
> p is known
>
> For m = 1 to 5
> (T_(m-1)-〖2T〗_m+T_(m+1))/〖∆
> x〗^2 +hP(T_∞-T_m
> )+εσP(T_surr^4-(T_m+273)^4 )=0
>
> For m = 6
> hA(T_∞-T_m
> )+εσA(T_surr^4-〖(T_m+273)〗^4
> )+kA (T_(m-1)-T_m)/∆x=0
>
> This gives me 6 equations with 6 unknowns (T1 to T6)
> but how do I enter these into MATLAB to use with
> their solver? I am sure this is a very basic question
> but I am really stumped by it. Any help is
> appreciated!
>
> -John H

Help fsolve.

Best wishes
Torsten.
```
 0

1 Replies
139 Views

Similiar Articles:

7/27/2012 5:54:48 PM