| 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: , |
|