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
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.