Functions by default don't show their scope variables in the workspace.
Did you have any error while running your code? If you don't, you can just perform a test by not using function in your 1st line.
So, just comment the first line of your code, and check if despx and despy appears in your workspace.
Then, your're performing the pipeline I mentioned before.
despx = importXfile('yourInput.csv')
despy = importYfile('youInput.csv')
function x_2 = importXfile(filename, dataLines)
function y_2 = importYfile(filename, dataLines)
Best Answer