MATLAB: Help me about plot y = 1/x

MATLABplotting

I want to plot the graph y = 1/x. I do in command window :
syms x y
x=0,0.1,1;
y=1/x;
plot(x,y)
I appear the error like this:
??? Error using ==> mldivide Matrix dimensions must agree
could you please help me repair this error to plot the graph y = 1/x. thanks

Best Answer

x=0:0.1:1;
y=1./x;
plot(x,y)