# Message Boards

Posted 7 months ago
506 Views
|
|
0 Total Likes
|
 My question is: how can I add constraints to Manipulate? This my Code:  Manipulate[ Show[ ListPlot[data, PlotStyle -> Red], Plot[func[x, Ax, Az, Bx, Bz, Cx, Cz, Dx, Dz], {x, -10, 10}, PlotStyle -> Darker[Gray]], PlotRange -> All], {{Ax, 0.12}, -1, 1, Appearance -> "Open"}, {{Az, -0.043}, -1, 1, Appearance -> "Open"}, {{Bx, -0.102}, -1, 1, Appearance -> "Open"}, {{Bz, -0.031}, -1, 1, Appearance -> "Open"}, {{Cx, 0.032}, -1, 1, Appearance -> "Open"}, {{Cz, -0.026}, -1, 1, Appearance -> "Open"}, {{Dx, 0.95}, -1, 1, Appearance -> "Open"}, {{Dz, 0.1}, -1, 1, Appearance -> "Open"}] I need to add two following constraints to Manipulate: (Ax+Bx+Cx+Dx ==1) , (Az+Bz+Cz+Dz==0) How can add these two constraints to Manipulate? Thanks for your help.