This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: % Tspecific, specific solution for given constants % tToReach125, the time (s) required to reach 125 degree F syms T0 Tb; T = dsolve('10*DT + T = Tb','T(0)=T0'); Tspecific = subs(T, {T0, Tb}, {50, 200}); tToReach125 = double(solve(Tspecific125)); ezplot(Tspecific, [0,tToReach125]); % check if the final value is 125 ME_1 function [yt1, yt2] = ME_1 % function finds the displacement of a spring with % viscous damping % INPUTS: none % OUTOUTS: yt1, the displacement over time for the first % set of initial conditions % yt2, the displacement over time for the second % set of initial conditions yt1 = dsolve('3*D2y + 18*Dy + 102*y = 10','y(0)=0','Dy(0)=0'); ezplot(yt1, [0,2]); yt2 = dsolve('3*D2y + 18*Dy + 102*y = 10','y(0)=0','Dy(0)=10'); figure ezplot(yt2, [0,2]); % strut assembly in a car is a spring with viscous damping...
View
Full Document
 Spring '08
 Sticklen
 Physical quantities, RC circuit, Electrical network

Click to edit the document details