matlab程序出错,function [taub tau h sig Z S sigma sen n senplot CIlower CIupper D Dall C3 nsigma] = ktaub(datain,alpha,wantplot)|Error:Function definitions are not permitted in this context.
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/01 23:02:34
![matlab程序出错,function [taub tau h sig Z S sigma sen n senplot CIlower CIupper D Dall C3 nsigma] = ktaub(datain,alpha,wantplot)|Error:Function definitions are not permitted in this context.](/uploads/image/z/810849-57-9.jpg?t=matlab%E7%A8%8B%E5%BA%8F%E5%87%BA%E9%94%99%2Cfunction+%5Btaub+tau+h+sig+Z+S+sigma+sen+n+senplot+CIlower+CIupper+D+Dall+C3+nsigma%5D+%3D+ktaub%28datain%2Calpha%2Cwantplot%29%7CError%3AFunction+definitions+are+not+permitted+in+this+context.)
matlab程序出错,function [taub tau h sig Z S sigma sen n senplot CIlower CIupper D Dall C3 nsigma] = ktaub(datain,alpha,wantplot)|Error:Function definitions are not permitted in this context.
matlab程序出错,
function [taub tau h sig Z S sigma sen n senplot CIlower CIupper D Dall C3 nsigma] = ktaub(datain,alpha,wantplot)
|
Error:Function definitions are not permitted in this context.
matlab程序出错,function [taub tau h sig Z S sigma sen n senplot CIlower CIupper D Dall C3 nsigma] = ktaub(datain,alpha,wantplot)|Error:Function definitions are not permitted in this context.
Question:
Function definitions are not permitted in this context
不允许在这种语境中定义函数.
Solution:
在m文件中定义函数,且输出参数用英文逗号隔开
改为[taub,tauh,..,sigma]