How to implement this equation?

 Accepted Answer

If is a tensor, you could represent it as a matrix.
Then your code should look something like this:
lamda = ones(1,n);
b = sum(ones(U,n),1);
rho = lamda./b;
Maybe this will work. You'll have to replace the matrices for lamda and b.

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!