【发布时间】:2014-03-30 22:07:42
【问题描述】:
我不确定为什么下面的代码不起作用。我基本上试图摆脱probofdetectionanddelamprop 中等于1 或小于10e-12 的元素,这意味着probofdetectionanddelamprop 的大小是动态变化的。因此,我添加了一个 while 循环来检查 i 何时等于新的 size(probofdetectionanddelamprop),但这似乎不起作用。
while i ~= numel(probofdetectionanddelamprop)
for i = 1:no_iterations % Clearly, no_iterations is > numel(probofdetectionanddelamprop)
if (probofdetectionanddelamprop(i) <=10e-12 || probofdetectionanddelamprop(i) == 1)
probofdetectionanddelamprop(i) = [];
end
end
end
谢谢
【问题讨论】: