GUI Slider Update Error

2 Ansichten (letzte 30 Tage)
Lawson Hoover
Lawson Hoover am 2 Dez. 2012
I have been trying to created a slider that actively updates a edit box in a GUI. Everything else in the GUI shows up except the slider. Also it had worked for around thrity inutes then stopped working. the Code is:
[sldr,pnl,edt] = ...
sliderPanel(gcf,...
{'title','Threshold','pos',[0.1 0.2 0.8 0.15],'fontweight','b','units','pixels'},...
{'max',80,'value',60,'callback','disp(''Slid'')'},...
{},...
{{'string','Low','foregroundcolor','b'},...
{'string','High','foregroundcolor','r'},...
{'fontweight','b'}},...
'%0.1f');
And the Error Code is :
Undefined function 'sliderPanel' for input arguments of type 'cell'.
Error in Beam_Deflection_GUI (line 161)
[sldr,pnl,edt] = ...
Any ideas?

Akzeptierte Antwort

Image Analyst
Image Analyst am 2 Dez. 2012
Why do you put braces around line? They're not necessary and I don't know how it ever worked in the first place, unless this is what you added to break it. Remove the braces at the beginning and end of each line and see how that goes.
  1 Kommentar
Lawson Hoover
Lawson Hoover am 2 Dez. 2012
Im not sure how but It is working again, with the cell array inputs. When I try it with out the brackets, the slider does not appear.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by