Hi,
I have a matrix like this
mtr = {{a, b, c, d}, {x, y, z, c}, {1, 2, 3, 4}, {3, 6, 8, 9}};
I applied this operation
cc = UpperTriangularize[mtr]
so I have .
cc = {{a, b, c, d}, {0, y, z, c}, {0, 0, 3, 4}, {0, 0, 0, 9}}
Now I would create a vector with only the values different to zero. How do I do?
Hence I would obtain the follow resut:
cc = {a,b,c,d,y,z,c,3,4,9}
Thanks for your help.
Margherita