Hi, I am lost in this Boundary Value Problem requiring to use Finite Difference Method:
I attached what I have done and the hint our professor provided, I also tried different methods from other matlab questions and youtube, but it always runs some error.
Below this is the code I hae so far, it works but it does not look correct, can anyone help please? I will really appreciate that!
num_segments = num_nodes-1;
diagonal = [1/h; 2/h^2*ones(num_segments-1,1); 1/h];
b = [T_B/h; Q(xj(2:end-1))'; T_E/h];