Assessment 1 problem solving task-combined
Assessment 1 problem solving task-combined
1
% Define the function d(x, y)
d = @(x, y) (1/18) * y;
0.8000
ans =
0.8000
1
% Define the differential equation
f = @(t, Q) t.*exp(-t) - 3*Q;
% Initial condition
Q0 = 0;
% Time span
tspan = [0 10];
1
Published with MATLAB® R2024a