Write a MATLAB program that uses finite differences to solve over the interval x [0, ].
Question:
Write a MATLAB program that uses finite differences to solve
over the interval x ∈ [0, π]. The boundary conditions at x = 0 are y = z = 1 and the boundary conditions at x = π are y = z = 0. Your program should automatically generate a plot of y versus x and z versus x.
Step by Step Answer:
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Question Posted: