====== Differences ====== This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
gibson:teaching:fall-2013:math445:practicefinalsolns [2013/12/08 18:28] gibson created |
gibson:teaching:fall-2013:math445:practicefinalsolns [2013/12/09 12:36] (current) szeto |
||
---|---|---|---|
Line 29: | Line 29: | ||
<code> | <code> | ||
- | x = linspace(-1,1,30); | + | x = linspace(-pi,pi,30); |
y = linspace(-1,1,30); | y = linspace(-1,1,30); | ||
[X,Y] = meshgrid(x,y); | [X,Y] = meshgrid(x,y); | ||
Line 104: | Line 104: | ||
Write Matlab code for an anonymous function that returns the vector | Write Matlab code for an anonymous function that returns the vector | ||
- | $d\bv/dt = [dx/dt, ~dy/dy, ~dz/dt]$ given an input vector $\bv = [x, y, z]$, | + | $dv/dt = [dx/dt, ~dy/dy, ~dz/dt]$ given an input vector $v = [x, y, z]$, |
using parameter values $s=10$, $b=8/3$, and $r=28$. | using parameter values $s=10$, $b=8/3$, and $r=28$. | ||