MATLAB: Multiple number of inputs n

input

Hi all,
I need to enter by keyboard some values and them use for loop for them so that matlab should know the number of them automatically.. So, How to enter multiple number of input values (let us say n) seperated with commas or space ? I tried the function input , but it doesn't work for n number of inputs because it include the space or comma as a length of the string
n=input('enter the value of quereis','s')

Best Answer

n=input('enter the value of quereis','s')
if separated with comma
out=regexp(n,',','split')