[translate] a:??? Error using ==> plot Conversion to double from sym is not possible. :态度恶劣 错误使用==>剧情转换向双从sym不是可能的。[translate]
在MATLAB中,当你遇到错误消息“输入函数必须返回 'double' 或 'single' 值。找到 'sym'”时,这通常意味着你试图在一个需要数值输入的函数中使用了符号(sym)类型的变量。MATLAB的许多内置函数,如integral、trapz等,都要求输入和输出为数值类型(double或single),而不是符号类型。 要解决这个问题,你可以按照以下步骤...
输入函数必须返回 'double' 或 'single' 值。找到 'sym'。 出错integral2Calc>integral2t (line 55) [Qsub,esub] = tensor(thetaL,thetaR,phiB,phiT); 出错integral2Calc (line 9) [q,errbnd] = integral2t(fun,xmin,xmax,ymin,ymax,optionstruct); ...