How do i fix that code

19 visualizaciones (últimos 30 días)
Opeoluwa Oluwatunmise
Opeoluwa Oluwatunmise el 13 de Nov. de 2018
Respondida: Steven Lord el 13 de Nov. de 2018
switch nargin
case 0
error(message('MATLAB:minrhs'));
case 1
S.s = tomupad(x);
Error using sym (line 212)
Not enough input arguments

Respuestas (1)

Steven Lord
Steven Lord el 13 de Nov. de 2018
When you call the sym function you must call it with at least one input argument. The Syntax section on that documentation page does not list a zero input calling syntax. Based on the error message you are calling it with no input arguments.

Categorías

Más información sobre Function Creation en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by