From: John on
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
From: Torsten Hennig on
> 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.