# MATLAB: This should be easy I have a while loop that is infinite

infinite loopsMATLABwhile loop

When I run this it is inifinite and well that's not what i am looking for… i thought that by limiting the x value to 99 which is in the vector i could get it to stop but that's not the case. any ideas i know that it is going to be something simple…
clc, clear all, close all;
x = 1;
while x <= 99
    x = 1:2:100end

v = [1 2 -9];  % Notice ALL values are non-zeroif v, disp('IN IF 1'),endv = [1 0 -9];  % Not all values are non-zero.if v, disp('IN IF 2'),end
v>-20  % This will pass [1 1 1]v<0    % Will not pass, [0 0 1]