<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265259</link>
    <title>MATLAB Central Newsreader - Euler method for a system</title>
    <description>Feed for thread: Euler method for a system</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 07 Nov 2009 21:08:38 -0500</pubDate>
      <title>Euler method for a system</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265259#692931</link>
      <author>Carp Fisher</author>
      <description>I have the two equations:&lt;br&gt;
&lt;br&gt;
dx/dt = -2x&lt;br&gt;
dy/dt = 5x - y&lt;br&gt;
&lt;br&gt;
x(0) = 5&lt;br&gt;
y(0) = 1&lt;br&gt;
&lt;br&gt;
for t values between 1 and 200&lt;br&gt;
&lt;br&gt;
I want to use the Euler method to solve this system and then graph each x and y vs t.&lt;br&gt;
&lt;br&gt;
Could someone point me to a code that could do this?  Don't worry, I don't need to come up with the code myself, so helping me out here isn't contributing to cheating in anyway.  Thanks,&lt;br&gt;
&lt;br&gt;
Jim</description>
    </item>
    <item>
      <pubDate>Mon, 09 Nov 2009 07:39:18 -0500</pubDate>
      <title>Re: Euler method for a system</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265259#693149</link>
      <author>Torsten Hennig</author>
      <description>&amp;gt; I have the two equations:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; dx/dt = -2x&lt;br&gt;
&amp;gt; dy/dt = 5x - y&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; x(0) = 5&lt;br&gt;
&amp;gt; y(0) = 1&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; for t values between 1 and 200&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I want to use the Euler method to solve this system&lt;br&gt;
&amp;gt; and then graph each x and y vs t.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Could someone point me to a code that could do this?&lt;br&gt;
&amp;gt; Don't worry, I don't need to come up with the code&lt;br&gt;
&amp;gt; e myself, so helping me out here isn't contributing&lt;br&gt;
&amp;gt; to cheating in anyway.  Thanks,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Jim&lt;br&gt;
&lt;br&gt;
Euler explicit:&lt;br&gt;
(x_{i+1}-x_{i})/dt = -2*x_{i}&lt;br&gt;
(y_{i+1}-y_{i})/dt = 5*x_{i}-y_{i}&lt;br&gt;
&lt;br&gt;
-&amp;gt;&lt;br&gt;
&lt;br&gt;
x_{i+1} = x_{i}*(1-2*dt)&lt;br&gt;
y_{i+1} = 5*dt*x_{i}+y_{i}*(1-dt)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Euler implicit:&lt;br&gt;
&lt;br&gt;
(x_{i+1}-x_{i})/dt = -2*x_{i+1}&lt;br&gt;
(y_{i+1}-y_{i})/dt = 5*x_{i+1}-y_{i+1}&lt;br&gt;
&lt;br&gt;
-&amp;gt;&lt;br&gt;
&lt;br&gt;
x_{i+1}=x_{i}/(1+2*dt)&lt;br&gt;
y_{i+1}=(y_{i}+5*dt*x_{i+1})/(1+dt)&lt;br&gt;
&lt;br&gt;
Best wishes&lt;br&gt;
Torsten.</description>
    </item>
  </channel>
</rss>

