I tried creating a regression model for the csv file (attached). The formula I wanted to create was sl~sst +at.
I loaded the table using "readtable" and then input the code to load the data in a table:
tbl = table(sl,sst,at,'VariableNames',{'Sea level','SST','AirT'})
I get the following error:
Error using feval
Not enough input arguments.
Error in sl (line 15)
[varargout{1:nargout}]=feval(varargin{:});
I would appreciate some help in this matter.

 Respuesta aceptada

Matt J
Matt J el 10 de Jul. de 2018
Editada: Matt J el 10 de Jul. de 2018

0 votos

You have a function named sl() somewhere in your path, one that requires input arguments. Matlab is interpreting your use of sl in
tbl = table(sl,sst,at,'VariableNames',{'Sea level','SST','AirT'})
as a call to that function with no input arguments.

4 comentarios

Keegan Carvalho
Keegan Carvalho el 10 de Jul. de 2018
Editada: Keegan Carvalho el 10 de Jul. de 2018
so I should change "sl" to something else? @Matt J
Matt J
Matt J el 10 de Jul. de 2018
Editada: Matt J el 10 de Jul. de 2018
Yes, or rename sl() to something else.
Keegan Carvalho
Keegan Carvalho el 10 de Jul. de 2018
It worked! Thanks @Matt J
Matt J
Matt J el 10 de Jul. de 2018
Editada: Matt J el 10 de Jul. de 2018
You're welcome, but please Accept-click the answer to certify the question as resolved.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Preguntada:

el 10 de Jul. de 2018

Editada:

el 10 de Jul. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by