keeping show me Too many input arguments with fit command

I got data from ga with same length however it is keeping show me Too many input arguments when I try to plot them using fit command I have tried to fit the data using my friend PC and it works. Then I uninstall Matlab from laptop and reinstall it and it still shows the same message.
if anyone has face the same issue, if yes can you help me?

2 Comments

What shows up for
which -all fit
Also, do you have the Curve Fitting Toolbox installed and licensed?
C:\Users\osbri\Documents\UQ\optimization\fit.m
C:\Program Files\MATLAB\R2019b\toolbox\stats\stats\@gmdistribution\fit.m % gmdistribution method
C:\Program Files\MATLAB\R2019b\toolbox\curvefit\curvefit\fit.m % Shadowed
yes

Sign in to comment.

Answers (1)

You need to remove C:\Users\osbri\Documents\UQ\optimization from your MATLAB Path, or move it to the bottom of the path, or rename it to something else, as it is interfering with toolbox\curvefit\curvefit\fit.m being invoked when you ask to fit()

Categories

Asked:

on 10 Jun 2020

Commented:

on 10 Jun 2020

Community Treasure Hunt

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

Start Hunting!