Student Support Forum: 'Comparing variables in a set & 3D plotting' topicStudent Support Forum > General > "Comparing variables in a set & 3D plotting"

 Next Comment > Help | Reply To Topic
 Author Comment/Response Simon 10/15/12 02:08am I'm trying to plot the following: N = {0,1..4} S = {0,1..4} x = |N-S| P = 5-x on a 3D graph, with P on the vertical axis, in order to demonstrate the relationship N and S have to P (i.e. P is 5 reduced by the absolute value of the difference between N and S, where N & S can be any integer 0 through 4). I've tried: Plot3D[{P,-5,5}, {N,0,4}, {S,0,4}] and defining both x and P as functions of N and S, to no avail. All I get is flat meshes on -5 and 5. If anyone can help me figure out how to plot this, I'd be most grateful. Bear in mind I have little to no formal maths training, so my notation is probably shocking. Cheers, ~S URL: ,

 Subject (listing for 'Comparing variables in a set & 3D plotting') Author Date Posted Comparing variables in a set & 3D plotting Simon 10/15/12 02:08am Re: Comparing variables in a set & 3D plotting Bill Simpson 10/15/12 4:40pm Re: Re: Comparing variables in a set & 3D plott... Simon 10/15/12 9:08pm Re: Re: Re: Comparing variables in a set & 3D p... Bill Simpson 10/16/12 2:24pm
 Next Comment > Help | Reply To Topic