I am trying to create a loop in matlab that allows me to create a sequence of numbers but is ended when the number 0 is entered, i have done this so far but i dont know how to go further.

a=input('a=');

while a~=0

b=input('b=');

if b~=0

c=[a b];

else b==0;

break

end

end

i want the code to allow me to add as many numbers to the sequence until i enter the value 0