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/04/19 13:45:57

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]