SWITCH expression must be a scalar or string constant

  • Follow


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
Reply Ping 11/11/2010 1:27:04 PM


0 Replies
1258 Views

(page loaded in 0.001 seconds)

Similiar Articles:













7/19/2012 5:53:26 PM


Reply: