| Author |
Comment/Response |
Mel
|
07/09/12 2:28pm
Does Region Function accept a variable as an argument, or does it have to have the equation immediately?
I've been trying to give it a variable from a function call, but Mathematica usually crashes.
The commented one doesn't work, while the uncommented one does as I left the region function defined I guess.
How can I fix this?
(*v[vf_,sf_]:=VectorPlot3D[vf,{x,-2,2},{y,-2,2},{z,-2,2},VectorPoints-\
>25,VectorScale->{0.1,Scaled[0.5]},RegionFunction->Function[{x,y,z},-\
0.1<=sf<=0.1]];*)
v[vf_] :=
VectorPlot3D[vf, {x, -2, 2}, {y, -2, 2}, {z, -2, 2},
VectorPoints -> 25, VectorScale -> {0.1, Scaled[0.5]},
RegionFunction ->
Function[{x, y, z}, -0.1 <= x^2 - y^2 - z <= 0.1]]
URL: , |
|