Explore BrainMass
Share

Explore BrainMass

    MATLAB: Implicit FTCS and Crank-Nicolson Scheme

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Write a program that solves the diffusion equation using the implicit FTCS scheme with parameters of N=61 and tau=1*10^-4,1.5*10^-4. Repeat the first part using the crank-nicolson scheme. Make a 'method' menu to run either of these scheme. Must be written in matlab.

    Attached is the explicit FTCS for diffusion.

    © BrainMass Inc. brainmass.com October 9, 2019, 11:01 pm ad1c9bdddf
    https://brainmass.com/computer-science/matlab/matlab-implicit-ftcs-crank-nicolson-scheme-241645

    Attachments

    Solution Preview

    The attached Matlab script executes the requested task.

    It has some comments on various ...

    Solution Summary

    This solution provides a MATLAB program to solve the diffusion equation.

    $2.19