Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SWITCH expression must be a scalar or string constant

215 views
Skip to first unread message

Ping Cao

unread,
Nov 11, 2010, 8:27:04 AM11/11/10
to
Hi, everyone. I came across a strange question while I tried to use fzero. For example, if I type X = fzero(@tan,2), the Matlab window will show up the following message:

??? SWITCH expression must be a scalar or string constant.

Error in ==> fzero at 146
switch printtype

Besides, my Matlab version is Matlab R2009b.

Thanks for your attention. Any help will be appreciated.

0 new messages