Write a function with the header [y] = myforwardsub(l,
b.which solves ly=b for y given an nxn lower triangular matrix l and an nx1 vector
b. use nested for loops, do not use built in matlab functions, inv, pinv, \. test case: >> l l = 1.0000 0 0 0 0 1.1117 1.0000 0 0 0 0.1558 3.1268 1.0000 0 0 1.1215 4.9871 2.3545 1.0000 0 0.7767 5.2270 2.2395 0.8098 1.0000 >> bnew = [10666; 12490; 24018; 24260; 24402]; >> y = mysub(l, bnew) y = 1.0e+04 * 1.0666 0.0633 2.0376 -3.8835 -0.1374
Answers
Answered by
10
y] = myForwardSub(L, b) which solves Ly=b for y given an nxn lower triangular matrix L and an nx1 vector b. Use nested for loops, do not use .
Attachments:
Answered by
0
Explanation:
When the potential difference across the two ends of the electrical component becomes half its former value, the current through it also becomes half. Since I = V/R, when potential difference becomes V/2, current becomes I/2 as the resistance (R) of the component remain' constant.
Similar questions