Really simple question... I'm trying to exit a while loop early:
while optimal < 1
%some code...
x=0 %This is just here to set my example...
if x~=0
break
end
end
But for some reason even though x was set to 0, the if statement always fails as it says x isnt equal to 0 and the while loops will never exit
Thanks!