Write a MATLAB code to solve the given boundary value problem numerically using an explicit finite difference method. Plot solutions at t = 0.25, 0.5, 0.75 and 1 s.
Use first-order central differencing for the derivative boundary conditions.
Note: Create grid, axis labels and legend for the graphs.
1-MATLAB CODE
1-GRAPHICAL OUTPUT
⦁ Repeat Question-1 with , 0.6 and 0.8; as well. Show only the graphical outputs for each case separately below; and looking at the graphics, make a very short visual comment about how any change in D affect the solution (For example; the curves get apart from each other, the curves get more concave, shape of the curves gets more blunt, etc…).
2- GRAPHICAL OUTPUT ()
2- GRAPHICAL OUTPUT ()
2- GRAPHICAL OUTPUT ()
2- COMMENT:
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |