matlab中~.m文件中的函数:function [Yhard,Ysoft] = treeTest(model,X,opts);在另外一个文件中调用.m文件中的这个函数:,ysoft]=treeTest(model1,X,opts);,一直出错:Expression or statement is incorrect--possibly unbalanced (,
来源:学生作业帮助网 编辑:六六作业网 时间:2025/02/02 23:10:41
matlab中~.m文件中的函数:function [Yhard,Ysoft] = treeTest(model,X,opts);在另外一个文件中调用.m文件中的这个函数:,ysoft]=treeTest(model1,X,opts);,一直出错:Expression or statement is incorrect--possibly unbalanced (,
matlab中~
.m文件中的函数:function [Yhard,Ysoft] = treeTest(model,X,opts);在另外一个文件中调用.m文件中的这个函数:,ysoft]=treeTest(model1,X,opts);,一直出错:Expression or statement is incorrect--possibly unbalanced (,{,or [.;我该怎么调用?如果这样调用的话
matlab中~.m文件中的函数:function [Yhard,Ysoft] = treeTest(model,X,opts);在另外一个文件中调用.m文件中的这个函数:,ysoft]=treeTest(model1,X,opts);,一直出错:Expression or statement is incorrect--possibly unbalanced (,
在这里表示忽略输出参数(即忽略Yhard),在MATLAB Version 7.9 (R2009b) 中引入它.你用的版本比7.9低,不支持这功能.用一个无用的变量接收这输出即可:
[unused, ysoft] = treeTest(model1,X,opts); %unused后面不会被用到