Mercurial > repos > public > sbplib
comparison stripeMatrixPeriodic.m @ 943:21394c78c72e feature/utux2D
Merge with default
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Tue, 04 Dec 2018 15:24:36 -0800 |
parents | bbf303c1f0cf |
children |
comparison
equal
deleted
inserted
replaced
942:35701c85e356 | 943:21394c78c72e |
---|---|
1 % Creates a periodic discretization matrix of size n x n | 1 % Creates a periodic discretization matrix of size n x n |
2 % with the values of val on the diagonals diag. | 2 % with the values of val on the diagonals diag. |
3 % A = stripeMatrix(val,diags,n) | 3 % A = stripeMatrix(val,diags,n) |
4 function A = stripeMatrixPeriodic(val,diags,n) | 4 function A = stripeMatrixPeriodic(val,diags,n) |
5 | 5 |
6 D = ones(n,1)*val; | 6 D = ones(n,1)*val; |
7 A = spdiagsVariablePeriodic(D,diags); | 7 A = spdiagsPeriodic(D,diags); |
8 end | 8 end |