how to normalize a uniformly distributed random values such that every row sum of X(:,:,i) should be 1 except for ith row?
1 次查看(过去 30 天)
显示 更早的评论
how to normalize a uniformly distributed random values such that every row sum of X(:,:,i) should be 1 except for ith row? 'i' value can be anything according to user's choice.
X = rand([n,key_size,6]); where n=6,key_size=3
Here 6 matrices created. Here i want row 5 not to be normalized in all the 6 matrices and keep the original value and all the other row sum of this 6 matrices be normalized? could somone help me in solving this problem. I would be very grateful. thank you
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!