'Input Undefined (Octave)

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.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source