Main

Solve Differential Equations in MATLAB

Main.MatlabDynamicSim History

Hide minor edits - Show changes to output

Added lines 31-36:
(:htmlend:)

!!!! Large-scale Dynamic Simulation

(:html:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/kthDuF_Wnp4" frameborder="0" allowfullscreen></iframe>
Changed lines 5-9 from:
This 5 minute tutorial gives step-by-step instructions on how to simulate dynamic systems. Dynamic systems may have differential and algebraic equations (DAEs) or just differential equations (ODEs) that cause a time evolution of the response. The tutorial covers the same problem in both MATLAB and Python.
to:
(:html:)
<iframe width="560" height="315" src="https://www.youtube.com/embed/QKhy1JsdiUo" frameborder="0" allowfullscreen></iframe>
(:htmlend:)

This
tutorial gives step-by-step instructions on how to simulate dynamic systems. Dynamic systems may have differential and algebraic equations (DAEs) or just differential equations (ODEs) that cause a time evolution of the response. The tutorial covers the same problem in both MATLAB and Python.
Deleted lines 28-29:
This same example problem is also demonstrated with [[Main/ExcelEulers|Spreadsheet Programming]] and in the [[Main/PythonDynamicSim|Python programming language]].
Added lines 30-31:

This same example problem is also demonstrated with [[Main/ExcelEulers|Spreadsheet Programming]] and in the [[Main/PythonDynamicSim|Python programming language]]. Another example problem demonstrates how to calculate the concentration of CO gas buildup in a room.
Added lines 30-34:

!!!! Additional Material

* %list list-page% [[http://apmonitor.com/wiki/index.php/Apps/CarbonMonoxide | Case Study on CO Buildup in a Room]]

May 20, 2014, at 06:23 AM by 107.188.175.164 -
Added lines 7-8:
* [[Attach:dynamics.zip|Dynamic Simulation Files (dynamics.zip)]]
Added lines 16-17:

* [[Attach:dynamic_estimation.zip|Dynamic Estimation Files (dynamic_estimation.zip)]]
May 20, 2014, at 06:15 AM by 107.188.175.164 -
Added lines 1-44:
(:title Solve Differential Equations in MATLAB:)
(:keywords introduction, MATLAB, differential equations, spreadsheet, nonlinear, university course:)
(:description Solve Differential Equations in MATLAB - Problem-Solving Techniques for Chemical Engineers at Brigham Young University:)

This 5 minute tutorial gives step-by-step instructions on how to simulate dynamic systems. Dynamic systems may have differential and algebraic equations (DAEs) or just differential equations (ODEs) that cause a time evolution of the response. The tutorial covers the same problem in both MATLAB and Python.

(:html:)
<iframe width="560" height="315" src="//www.youtube.com/embed/-IDTagajoyA?rel=0" frameborder="0" allowfullscreen></iframe>
(:htmlend:)

----

MATLAB offers several solvers to numerically simulate the solution of sets of differential equations. Below are two examples of solving a first-order decay with different solvers in MATLAB. The objective is to fit the differential equation solution to data by adjusting unknown parameters until the model and measured values match.

(:html:)
<iframe width="560" height="315" src="//www.youtube.com/embed/ynm7B0N0_Yw" frameborder="0" allowfullscreen></iframe>
(:htmlend:)

The second example demonstrates how this same problem is solved with APM MATLAB.

(:html:)
<iframe width="560" height="315" src="//www.youtube.com/embed/pOXcOWMo5Hs" frameborder="0" allowfullscreen></iframe>
(:htmlend:)

This same example problem is also demonstrated with [[Main/ExcelEulers|Spreadsheet Programming]] and in the [[Main/PythonDynamicSim|Python programming language]].

----

(:html:)
 <div id="disqus_thread"></div>
    <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
        var disqus_shortname = 'apmonitor'; // required: replace example with your forum shortname

        /* * * DON'T EDIT BELOW THIS LINE * * */
        (function() {
            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
            dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
        })();
    </script>
    <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
    <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
(:htmlend:)