| Author |
Comment/Response |
natt
|
11/28/10 11:55pm
Hi! I'm new to mathematica.
I'm trying to use the manipulate funtion to see the effect of parameters a,b,c,d,p,q on a plotted area.
I defined two functions:
j[a_, b_, x_, y_] := If[a*x + b*y > 1, 1, 0]
k[c_, d_, x_, y_] := If[c*x + d*y > 1, 1, 0]
And used manipulate:
Manipulate[
RegionPlot[
j[a_, b_, x_, y_]*p + k[c_, d_, x_, y_]*q > 1, {x, 0, 1}, {y, 0,
1}], {a, 0, 2}, {b, 0, 2}, {c, 0, 2}, {d, 0, 2}, {p, 0, 2}, {q, 0,
2}]
But I get an error saying that tag If is protected, and I don't really know what it means. Can anyone tell me what's wrong??
Thanks!
URL: , |
|