how to calculate comedian(c) in matlab? [closed]
Quick answer (because you finally explained a workable example input=>desired output) before closing the question. x = [1 2 3 ; 4 5 6 ; 7 8 9] ; T = size(x,1) ; N = size(x,2) ; R = [x,x(:,1)] ; % copy the first column in last position (to be able to loop seamlessly) … Read more