| Author |
Comment/Response |
sadiq
|
05/02/12 08:55am
Hey guys,
I have 4 variables, a,b,c,d. I want to create buttons on my graph so that when one of them is selected , one of the variables becomes 1 and the others go to zero.
If you look at the picture i uploaded, it has four buttons, "Car","Van","Pickup","Utility", so when car is selected a=1 and b,c,d=0. When Van is selected b=1 and a,c,d=0. And so on. These buttons are part of a manipulate function I created. The code is used to create them was:
{{vtype, 0, "Vehicle Type"}, {"Car", "Van", "Pickup", "Utility"}}
Would really appreciate any help. Thanks.
Attachment: Buttons.tiff, URL: , |
|