Hello Rick,

I want your help about a project that I am doing.

I want to know how can I fill a vector with the upper triangular half elements of a matrix.

So I have a matrix M and I want to write a column vector v(M) such that the element at the (i,j)th location (j>=i) in this upper triangular half is the l-th element of the vector v(M) where l=(i-1)[p-(i/2)]+j, j>=i.

Please, help me.

Thanks.