MATLAB: Curve fitting tool unavailable

curve fitting

Attempting to use the command "fit", even for a very simple data set returns: Undefined function 'fit' for input arguments of type 'double'.
typing cftool returns not available.
Anyone know why or how to fix this? I am running MATLAB off a cluster, not a personal computer if that makes a difference.
Sorry if the question is silly. ;/

Best Answer

If you need to fit data and don’t have access to the Curve Fitting Toolbox, see if you have the Statistics Toolbox or the Optimization Toolbox. Those both have good curve fitting functions.
To see if you have these, type:
which nlinfit -all
which lsqcurvefit -all
in the MATLAB Command Window.
If all else fails, you can use fminsearch.