Also, one thing to mention, if I put every value of x manually the table does work, but I don't want to do that as I want to change later the range of x
x= [-10;-9;-8;-7;-6;-5;-4;-3;-2;-1;0;1;2;3;4;5;6;7;8;9;10]
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1469171/image.png)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!