E = M;
fbest = inf;
for k = 1:Rows
if sumsqr(E(k,1:Columns)) < fbest
fbest = sumsqr(E(k, 1:Columns));
xbest = E(k, 1:Columns);
end
end
E is the matrix i need to find which row has the smallest square root of its added values, I the output gives me fbest= inf and nothing for xbest.
(E是矩阵,我需要找出哪一行具有其相加值的最小平方根,我的输出是fbest = inf而xbest没有。)
I cant seem to see why it isnt working. (我似乎看不到为什么它不起作用。)
ask by Jhon Macieira translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…