triangular

Is there around a straightforward way to invert a triangular (upper or lower) matrix?

Hello, I'm trying to implement some basic linear algebra operations and one of these operations is the inversion of a triangular (upper and/or lower) matrix. Is there an easy and stable algorithm to do that? Thank you. ...

How can I create a triangular matrix based on a vector, in MATLAB?

Let's say I've got a vector like this one: A = [101:105] Which is really: [ 101, 102, 103, 104, 105 ] And I'd like to use only vector/matrix functions and operators to produces the matrix: 101 102 103 104 105 102 103 104 105 0 103 104 105 0 0 104 105 0 0 0 105 0 0 0 0 or the following matrix: 101 102 103 104 105 0 ...