i tried this:
for i = length(v)
while i + n -1 < length(v)
if all( v(i : i+n-1) ) == true
disp(sum(v(i:i+n-1)))
end
end
end
but i get 7 every time
Info
この質問は閉じられています。 編集または回答するには再度開いてください。
この質問は閉じられています。
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!