Saying twopointcorr is undefined

I have dowloaded the twopointcorr function but when I try to call it, it says "Undefined function or variable 'twopointcorr'". What do I do to fix this?

Answers (1)

David Goodmanson
David Goodmanson on 28 Jun 2018
Edited: David Goodmanson on 28 Jun 2018
Hi Amav
You just have to make sure that twopointcorr is in a folder somewhere on the Matlab path, so that Matlab knows it exists. The path command shows all the currently recognized folders, and the cd command shows the current folder. If you want to add a folder, see pathtool, or addpath, savepath.

This question is closed.

Asked:

on 28 Jun 2018

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!