Enter the table of values used for this plot

Help, please, with the task.
If x = -0.6, then y = -2.777... and ad infinitum. At what point do I start to decide wrong, can you please tell me also? I'm stuck at this point and can't continue. Thank you

Answers (1)

x = [-5:-1 -0.8:0.2:-0.2];
x = [x -x(end:-1:1)]
x = 1×18
-5.0000 -4.0000 -3.0000 -2.0000 -1.0000 -0.8000 -0.6000 -0.4000 -0.2000 0.2000 0.4000 0.6000 0.8000 1.0000 2.0000 3.0000 4.0000 5.0000
y = 1./x.^2
y = 1×18
0.0400 0.0625 0.1111 0.2500 1.0000 1.5625 2.7778 6.2500 25.0000 25.0000 6.2500 2.7778 1.5625 1.0000 0.2500 0.1111 0.0625 0.0400
result = reshape([x; y],1,[])
result = 1×36
-5.0000 0.0400 -4.0000 0.0625 -3.0000 0.1111 -2.0000 0.2500 -1.0000 1.0000 -0.8000 1.5625 -0.6000 2.7778 -0.4000 6.2500 -0.2000 25.0000 0.2000 25.0000 0.4000 6.2500 0.6000 2.7778 0.8000 1.5625 1.0000 1.0000 2.0000 0.2500

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Asked:

on 9 Nov 2022

Answered:

on 9 Nov 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!