*************Help!!!! ******Crank Nicolson method

3 views (last 30 days)
Xin
Xin on 7 May 2013
HELP!!!!!!******************I've looked everywhere on website to solve my coursework problem, however our matlab teacher is a piece of crap, do nothing in class just reading meaningless handouts----------------------- here is the question--------------------------------------------------------------------------------------------------------------------- Write a Matlab script program (or function) to implement the Crank-Nicolson finite difference method based on the equations described in appendix. Save the program as crank_nicolson_heat.m. Test the crank_nicolson_heat.m (by choosing suitable m and n) on the examples described in (I) and (II) for various r and l .---------------------------------------------------------------------------------------------------------------------------(I) Let L=pi, T = 20,f(x)= .1sin(x) , g1(t) = 0, g2(t)= 0 and c = .5---------------------------------------------------------------(II)Let L= 1, T = 1,f(x)= x^4 , g1(t) = 0, g2(t)= 1 and c = 1------------------------------------------------------------------------Thank You!!!

Answers (0)

Categories

Find more on Chemistry in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!