From: ImageAnalyst on
On Jun 26, 6:40 pm, "andrea " <flavioantone...(a)alice.it> wrote:
> I tried with guide but when I try to add, for example, a slider, I can't set it in order to do something in particular. For example, how can I extend/retract the landing gear just by moving a slider? Now what I have is just an if cicle that gIves me the animation of the motion...  
------------------------------------------------------------------------------------
andrea :
I have no idea why it's not working for you. It works for me just
fine. You put a slider on the figure. Then you right click on the
slider and say to look at its callback function. In the callback
function you put whatever commands you want it to do when the slider
is moved. (These would be the commands that "extend/retract the
landing gear" - whatever those commands may be.) Like I said, it
works just fine for me. What is inside your callback function?
Anything at all???? If there is, are there any error messages when
you move the slider?

-Image Analyst
From: andrea on
I've actually written some lines of code in the callback function but when I run my GUI all I get is an error saying that the min/max are not set properly. I was wondering why: infact I set them through the list of settings appearing when you're in the editing mode of the GUI but nothing happened. Plus, when running the GUI, there are no sliders displayed on the screen, just the un-animated plot...
From: Jan Simon on
Dear Andrea,

> I've actually written some lines of code in the callback function but when I run my GUI all I get is an error saying that the min/max are not set properly.

Fine. I like Matlab's exact error messages.
So you have to set the Min/Max properly.
Perhaps take a look in the documentation of UICONTROL/Sliders.

Good luck, Jan
From: ImageAnalyst on
If the value of the 'value' property is outside the range given by the
'min' and 'max' properties, then the slider will not be displayed.
Make sure you correct that.
From: andrea on
now I've changed the values and suddenly the slinder is displayed. Anyways, I get another error if I try to move the slider:


??? Reference to non-existent field 'xa'.

Error in ==> diadi at 3
[mecc.xb,mecc.yb,mecc.phi1b,mecc.phi2b,mecc.phi3b]=diadeRRR(mecc.xa,mecc.ya,-19.06,-72.55,mecc.abs(i),15.63,1);

Error in ==> guimem>slider1_Callback at 107
handles=diadi(handles);

Error in ==> gui_mainfcn at 96
feval(varargin{:});

Error in ==> guimem at 42
gui_mainfcn(gui_State, varargin{:});

??? Error while evaluating uicontrol Callback
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4
Prev: HOW TO BECOME A MUSLIM
Next: Please help me understand this