Question: in matlab Write a function to solve a lower triangular system of equations Lx=b where L is a n by n matrix and L(i,j)=i+j if
Write a function to solve a lower triangular system of equations Lx=b where L is a n by n matrix and L(i,j)=i+j if ij, otherwise L(t,j)=0. b is a n by 1 matrix (a column vector) and b(i)=i. Example Input: n=3 Output: x=[0.5;0.125;0.0625] Begin your function with function x=myl(n) Do not use ' 1 ', 'inv', 7u,1, or 'midivide' in your code. Function 3 Code to call vour function 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
