MATLAB: Implementation of a matrix

matrix

Hello!
I want to implement a function, which has n as an input an outputs the following matrix:
Can someone help me please?

Best Answer

You haven't told us what x and e are, but assuming x is a vector and e is a scalar, simply this:
result = cos( (1:n) .* x(:) * e )