Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear, clc
- t=0:0.10:5; % time scale
- initial_T=350;
- [t,T]=ode45(@firstorder, t, initial_T);
- plot(t,T,'-xb');
- xlabel('t')
- ylabel('x')
- function dxdt = firstorder(t,x)
- dxdt=-3*exp(-t)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement