Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Re: Error while evaluating uicontrol Callback
Posted:
Mar 14, 2013 9:22 PM
|
|
"Yuwei " <wyw0424@ksu.edu> wrote in message <khte06$k1m$1@newscl01ah.mathworks.com>... > I don't understand this error. The first function for 'parabola' is correct but the second one doesn't work. Can anyone explain to me? Thank you so much! [snip] > Error using == > Matrix dimensions must agree. > > Error in WYW_ctfsBuilder (line 44) > if sigType == 'parab' % parabola > > Error in WYW_ctfsBuilder/square_Callback (line 38) > WYW_ctfsBuilder('square'); > > Error while evaluating uicontrol Callback
You cannot compare strings with == - you need to use strcmp() or some other string-comparison function: if strcmpi(sigType,'parab')
Yair Altman http://UndocumentedMatlab.com
|
|
|
|