https://pyclip.ru/en/tapes/BSZY1IpXru4/matlab-while-loop-part-2-prevent-infinite-loop-using-break