Displaying 1 result from an estimated 1 matches for "101x101x2".
Did you mean:
101x101
2005 Mar 11
1
Ploting a function of two arguments
...lan is to use persp(), and my question is:
how do I create the array of values? One possibility is:
x <- seq(0, 10, by=.1)
y <- seq(0, 10, by=.1)
inputs <- <somehow create an array of x,y pairs>
outputs <- apply(A, c(1,2), myfun)
The "inputs" array would need to be 101x101x2 array, i.e. basically a 2D
array of pairs. I might need to write a little wrapper for myfun.
Am I on the right track, or is there an easier way to do this? It seems
there should be an easier way to graph a 2 argument function like this.
- Martin