I want to model 1-D heat transfer equation in matlab

472 Views Asked by At

I want to model 1-D heat transfer equation with $ \ k=0.001 \ $ in Matlab, at left side there is a Neumann boundary condition $ \ \frac{dT}{dx}=0 \ $ and at the right side, there is a Dirichlet boundary condition $ \ T=0 \ $ and my initial condition is $ \ T(0,x)=-20 \ $ degree centigrade. As I am a beginner in Matlab anybody can help in this regard. I will be very thankful to you?