I am solving a coupled system of equations using spectral collocation scheme,
u=0,t=0.5 at y=0;
u=0,t=1 at y=1;
The set of equations at (N+1) collocation points will be described as:
U_0 = 0, T_0=1
U_N = 0, T_N=0.5
D2 is the differentiation matrix of order(N+1), given by D2=D*D
U and T are the vectors of unknowns
with given boundary conditions, how can solve the set of algebraic equations in MATLAB?
Can it be solved using "fsolve"?
As I do now know how to express the vectores U and T in the code.