The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Error while evaluating uicontrol Callback
Replies: 1   Last Post: Mar 14, 2013 9:22 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Yair Altman

Posts: 1,407
Registered: 3/19/07
Re: Error while evaluating uicontrol Callback
Posted: Mar 14, 2013 9:22 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Yuwei " <> wrote in message <khte06$k1m$>...
> 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!
> 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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.