I'm trying to generate a plot in mathematica using the Table function. Below is an example of what I'm trying to produce:
f[x_, y_, z_]:= (x + y + z)^2
Table[f[1, 2, x=z], {z, 0, 10, 2}]= {9, 25, 49, 81, 121, 169}
Now I want to plot the output from Table[f[1, 2, z], {z, 0, 10, 2}]
against the same range of z values inputed into the function (0, 2, 4, 6, 8, 10). I have tried all sorts but really can't get it to work. It should be pretty basic but I haven't used mathematica in a while-appreciate your help with this
Thanks
ListPlot
. ThatDataRange
option is pretty handy for this! $\endgroup$