Hi I am trying to solve two coupled ODEs simultaneously.
My equations are:
dT1/dz = -U*a1/(p1*q1*Cp1*L)*(T1 - T2) - Q*a1/(p1*Cp1)
dT2/dz = U*a2/(p2*Cp2*q2*L)*(T1 - T2)
I have tried programming Matlab in several different ways this is the code for the one I think I am the closest to solving.
function [z, T] = Term_project2
dT(1) = -(U*a)/(L*p1*Cp1*q1)*(T1(z)-T2(z))-Q/(p1*Cp1);
dT(2) = (U*a)/(L*p2*Cp2*q2)*(T1(z)-T2(z))-Q/(p2*Cp2);
Errors: Unrecognized function or variable 't'.
Which doesn't make sense since I don't have t.