matlab中~.m文件中的函数:function [Yhard,Ysoft] = treeTest(model,X,opts);在另外一个文件中调用.m文件中的这个函数:,ysoft]=treeTest(model1,X,opts);,一直出错:Expression or statement is incorrect--possibly unbalanced (,
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/30 03:52:27
![matlab中~.m文件中的函数:function [Yhard,Ysoft] = treeTest(model,X,opts);在另外一个文件中调用.m文件中的这个函数:,ysoft]=treeTest(model1,X,opts);,一直出错:Expression or statement is incorrect--possibly unbalanced (,](/uploads/image/z/14965642-10-2.jpg?t=matlab%E4%B8%AD%7E.m%E6%96%87%E4%BB%B6%E4%B8%AD%E7%9A%84%E5%87%BD%E6%95%B0%EF%BC%9Afunction+%5BYhard%2CYsoft%5D+%3D+treeTest%28model%2CX%2Copts%29%EF%BC%9B%E5%9C%A8%E5%8F%A6%E5%A4%96%E4%B8%80%E4%B8%AA%E6%96%87%E4%BB%B6%E4%B8%AD%E8%B0%83%E7%94%A8.m%E6%96%87%E4%BB%B6%E4%B8%AD%E7%9A%84%E8%BF%99%E4%B8%AA%E5%87%BD%E6%95%B0%EF%BC%9A%2Cysoft%5D%3DtreeTest%28model1%2CX%2Copts%29%3B%2C%E4%B8%80%E7%9B%B4%E5%87%BA%E9%94%99%EF%BC%9AExpression+or+statement+is+incorrect--possibly+unbalanced+%28%2C)
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后面不会被用到