Assignment - Questions - MATLAB (Weightage:5)
Assignment - Questions - MATLAB (Weightage:5)
Instructions: Submit the “m”file, along with ppt slides for each problem with solutions.
1) The temperature of a bearing cooling to room temperature after being taken out of an heat
treatment oven is given by dT/dt=c(T−23) where c=−0.028. 23°C is the ambient
temperature. When the bearing is removed from the oven (t=0 minutes), the bearing’s
temperature is 175 ∘C
Find solutions for this differential equation from time range 0 to 100 s using
𝑑𝑦
2) Solve 𝑑 2 𝑦/𝑑𝑥 2 + 4 ∗ 𝑑𝑥 − 2 ∗ 𝑦 = 2 ∗ 𝑥 2 − 3 ∗ 𝑥 + 6
𝑑2 𝜃
3) Solve + 𝜃 = 0; 𝜃(0) = 1 ; 𝜃 ′ (0) = 0
𝑑𝑡 2
4) Implement RK4 to solve y’= 2x -3y +1 ; y(1)=5; Find y(1.5) step size h=0.1; repeat with
h=0.05; P lot the results h=0.1 and h=0.05 in the same graph with different colours.
****************************************