Skip to content

Commit ff6b8a2

Browse files
committed
Updated toolbox documentation and README, added option to open toolbox documentation from Command Window
1 parent e5865a3 commit ff6b8a2

File tree

1,987 files changed

+16250
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,987 files changed

+16250
-96
lines changed

INSTALL/ODE Solver Toolbox.mltbx

4.75 MB
Binary file not shown.

README.md

Lines changed: 17 additions & 0 deletions

docs/AB2_doc.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<!--
77
This HTML was auto-generated from MATLAB code.
88
To make changes, update the MATLAB code and republish this document.
9-
--><title>AB2</title><meta name="generator" content="MATLAB 9.11"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2021-12-22"><meta name="DC.source" content="AB2_doc.m"><style type="text/css">
9+
--><title>AB2</title><meta name="generator" content="MATLAB 9.11"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2021-12-29"><meta name="DC.source" content="AB2_doc.m"><style type="text/css">
1010
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
1111

1212
html { min-height:100%; margin-bottom:1px; }
@@ -178,14 +178,14 @@
178178
</pre><pre class="codeoutput">
179179
y10 =
180180

181-
0.002270005950239
181+
0.0023
182182

183183
</pre><p>Confirming our result by solving the same ODE but from <img src="AB2_doc_eq08325516970591449802.png" alt="$t=10$" style="width:29px;height:8px;"> to <img src="AB2_doc_eq01961946856973312452.png" alt="$t=20$" style="width:29px;height:8px;"> and using our result for <img src="AB2_doc_eq14770085807156189371.png" alt="$y(10)$" style="width:25px;height:11px;"> as the initial condition,</p><pre class="codeinput">[t,y] = AB2(f,[10,20],y10,0.001);
184184
y20 = y(end)
185185
</pre><pre class="codeoutput">
186186
y20 =
187187

188-
50.000000249970483
188+
50.0000
189189

190190
</pre><h2 id="18">Example #4: Backward integration (event-detection case).</h2><p><i>Once again, consider</i></p><p><img src="AB2_doc_eq15707102448259949290.png" alt="$$\frac{dy}{dt}=y,\quad y(20)=50$$" style="width:100px;height:23px;"></p><p><i>Find <img src="AB2_doc_eq14770085807156189371.png" alt="$y(10)$" style="width:25px;height:11px;"> using an ODE solver with a condition function (i.e. event-detection).</i></p><p>First, let's define our ODE (<img src="AB2_doc_eq15749537601348477239.png" alt="$\frac{dy}{dt}=f(t,y)$" style="width:53px;height:15px;">) and initial condition in MATLAB.</p><pre class="codeinput">f = @(t,y) y;
191191
y20 = 50;
@@ -195,7 +195,7 @@
195195
</pre><pre class="codeoutput">
196196
y10 =
197197

198-
0.002272275954297
198+
0.0023
199199

200200
</pre><p>Note that this is the same result we obtained earlier in Example #3.</p><h2 id="23">See also</h2><p><a href="AB3_doc.html"><tt>AB3</tt></a> | <a href="AB4_doc.html"><tt>AB4</tt></a> | <a href="AB5_doc.html"><tt>AB5</tt></a> | <a href="AB6_doc.html"><tt>AB6</tt></a> | <a href="AB7_doc.html"><tt>AB7</tt></a> | <a href="AB8_doc.html"><tt>AB8</tt></a></p><p class="footer"><br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2021b</a><br></p></div><!--
201201
##### SOURCE BEGIN #####

docs/AB2_doc.png

0 Bytes

docs/AB2_doc_01.png

0 Bytes

docs/AB2_doc_02.png

0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes

0 commit comments

Comments
 (0)