将以下 matlab 行转换为 C++ 时遇到困难:
for i=1:height
for j=1:width
if (match == 0)
[min_w, min_w_index] = min(w(i,j,:));
mean(i,j,min_w_index) = double(data(i,j));
sd(i,j,min_w_index) = sd_init;
end
rank = w(i,j,:)./sd(i,j,:);
rank_ind = [1:1:C];
end
end
特别是我不知道如何隐藏“min_w_index”部分。有人可以在这一点上帮助我吗?