2016-09-17 89 views

回答

5

這是做

X = rand(4,4) 
y = rand 
f = X - y; 
f(f > 0) = -inf; 
[~, ind] = max(f(:)); 
[i,j] = ind2sub(size(X), ind) 
的一種方式
相關問題