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 commentaires

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

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 10 Juin 2020
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()

Catégories

En savoir plus sur Get Started with Curve Fitting Toolbox dans Centre d'aide et File Exchange

Commenté :

le 10 Juin 2020

Community Treasure Hunt

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

Start Hunting!

Translated by