Hi everyone!

I have this code.

`x = 0:0.1:100;y = cos(x)/(2-cos(x));`

I was expecting my y to be a row vector too like x. However, when I declare it, the output is only y = -0.1122.

The question is why is that and what should I do to make y as a vector like x.

I haven't finish my Onramp tutorial, but I'm just curious and at the same time confused.

Sorry if my question is too basic to be asked and sorry again for my bad English.

Thank you in advanced!

## Best Answer