How do i fix that code

21 vues (au cours des 30 derniers jours)
Opeoluwa Oluwatunmise
Opeoluwa Oluwatunmise le 13 Nov 2018
switch nargin
case 0
error(message('MATLAB:minrhs'));
case 1
S.s = tomupad(x);
Error using sym (line 212)
Not enough input arguments

Réponses (1)

Steven Lord
Steven Lord le 13 Nov 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.

Catégories

En savoir plus sur Function Creation dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by