Path: news.mathworks.com!newsfeed-00.mathworks.com!solaris.cc.vt.edu!news.vt.edu!news.glorb.com!tr22g12.aset.psu.edu!news.mathforum.org!not-for-mail
From: amadd <amardi88@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Solving 3 equations in Matlab
Date: Mon, 29 Nov 2010 14:21:12 EST
Organization: The Math Forum
Lines: 9
Message-ID: <1735798820.23823.1291058514512.JavaMail.root@gallium.mathforum.org>
NNTP-Posting-Host: gallium.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1291058514 32723 144.118.94.39 (29 Nov 2010 19:21:54 GMT)
X-Complaints-To: news@news.mathforum.org
NNTP-Posting-Date: Mon, 29 Nov 2010 19:21:54 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:690980

Hello, I`m having trouble solving equations simultaneously in Matlab. I have three equations and three unknowns. Two equations are algebraic and one is a differential equation. Here are my three equations, any help would be appreciated:

1. (0.3*1.06*3348*Ttank)-(0.3*1.06*3348*Toutc)+(20*200*(sin(t/24*3.14))^8=0

2. (0.041*4418*20)-Toutw*4418*0.041+1000*((Ttank-20)-(Ttank-Toutw))/ln(Ttank-20)/(Ttank-Toutw)

3. 1.06*3348*1.5* dTtank/dt=0.03*1.06*3348*Toutc-0.03*1.06*3348*Ttank-1000*((Ttank-20)-(Ttank-Toutw))/ln(Ttank-20)/(Ttank-Toutw)

t is time and will simulate from 0 until 300. Intial condition for Ttank(0)= 40, so Ttank at 0 is equal to 40. Please I need help urgently. How can this be written in Matlab and how can we plot Toutw against t (time)? I would really appreciate any help.