# I got this question for my heat transfer class and dont know where to begin inputting into matlab to give me the correct answer.

2 views (last 30 days)
James Water Bird on 28 Jun 2023
Moved: Torsten on 28 Jun 2023
The pictures illistrate the question and the correct solution
If you have any idea how i could solve this in matlab pls help
James Water Bird on 28 Jun 2023
My problem is how do i solve the problem on matlab,given the equations and solution.
What scripit would give me the same answer as the solution
Steven Lord on 28 Jun 2023
Since you've said this is a problem for a class, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free MATLAB Onramp tutorial to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.

Torsten on 28 Jun 2023
Moved: Torsten on 28 Jun 2023
My problem is how do i solve the problem on matlab,given the equations and solution.
Define an array T(6,6) where the first dimension refers to time (t) and the second dimension refers to space (x).
You know T(1,:), the temperatures at time t = 0 by the last x-dependent equation T(x) = ... .
Now use a loop from 2 to 6 to calculate the temperatures for t = 0.3, t = 0.6,..., t = 1.5 recursively from the six updating equations in the analysis.
More hints are not possible because this is a homework problem.