function x = mybwd(U,w) % syntax: x = mybwd(U,w) % input: upper triangular matrix U, real vector w % backward substition to solve Ux = w n = length(w); x = zeros(n,1); for i=n:-1:1 if i