Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Create solve_tridiag.m
  • Loading branch information
pmb13005 committed Mar 29, 2017
1 parent b7decf5 commit b060bc7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions solve_tridiag.m
@@ -0,0 +1,11 @@
function [x] = solve_tridiag(ud,uo,lo,b)

A = zeros(length(ud),4);
A(:,1) = ud;
A(:,2) = uo;
A(:,3) = lo;
A(:,4) = b;

numzeros = 0;

end

0 comments on commit b060bc7

Please sign in to comment.