输入未定义(八度)
我有以下用新脚本编写的代码形式:
function f1=f1(X,Y)
A=f2(X,Y)
end
其中f2
以另一个脚本写入。我分配了X和Y的向量,都可以使用f2
正常工作。但是,当我为新脚本编写它时,控制台显示
'x'在第3行附近未定义,第3列
第3行是输入X首次出现在f2(x,y)
中。当我将f2
重写时,问题不会出现。问题也没有出现。
我似乎找不到问题,我想知道我在哪里出了问题。提前致谢。
I have the following form of code written in a new script:
function f1=f1(X,Y)
A=f2(X,Y)
end
where f2
is written in another script. I assigned vectors for both X and Y, both working with f2
just fine. But when I write it for the new script, the console displays
'X' undefined near line 3, column 3
Line 3 is the first time the input X appears in f2(X,Y)
. The problem doesn't appear when I rewrite f2
right into this script. The problem also doesn't appear for Y.
I can't seem to find the problem and I want to know where I went wrong. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论