Unformatted text preview: % means DIFFERTIAL OF V with respect to the t: dV/dt. % 2) The first argument to dsolve is THE DIFFERENTIAL EQUATION itself, % and it is enclosed in single quotes. % 3) The second argument to dsolve is THE INITIAL CONDITION, again set % off in single quotes. % 4) The third argument is the variable with which the differential is % with respect to, again set off in single quotes. E = dsolve('10*Dv = -9.8*10', 'v(0)=100', 't') % The 10 is the assumed mass. % The only thing beyond what you did for first order Diff EQs that is new % for using the symbolic toolbox for second order Diff EQs is the use of % CAPITAL-D-2. This tells MATLAB that you are using a SECOND DERIVATIVE. % Notice too that the initial condition on velocity is written a a % CAPITAL-D. Notice finally that the variable you identify as the target % is the LAST argument, in the second order examples, it is the fourth % argument. E = dsolve('10*D2x = -9.8*10', 'x(0)=0', 'Dx(0)=100', 't')...
View Full Document
- Fall '08
- Derivative, single quotes, order Diff EQs