ERROR : Not enough input arguments

15 vues (au cours des 30 derniers jours)
Antonino Marino
Antonino Marino le 12 Fév 2021
Commenté : Antonino Marino le 12 Fév 2021
  2 commentaires
CJ Vaughn
CJ Vaughn le 12 Fév 2021
Modifié(e) : CJ Vaughn le 12 Fév 2021
Hi Antonino,
Can you share the line of code which calls the function startupFcn?
Antonino Marino
Antonino Marino le 12 Fév 2021
app.ruolo = arg

Connectez-vous pour commenter.

Réponses (1)

CJ Vaughn
CJ Vaughn le 12 Fév 2021
Modifié(e) : CJ Vaughn le 12 Fév 2021
Hi Antonino,
Based on the comments in the provided code, it looks like you are using App Designer.
When designing an application using App Designer, it is possible to specify input arguments needed to run the application. The following line indicates that there is one input argument (arg) for this application.
function startupFcn(app, arg)
To enter input arguments, expand the drop-down list from the Run button in the toolstrip. In the second menu item, specify comma-separated values for each input argument. The app runs after you enter the values and press Enter.
For more information on creating and working with input arguments, please see the documentation here:
  4 commentaires
Image Analyst
Image Analyst le 12 Fév 2021
How many arguments does your app need? Supply everything that is needed to run it, whether that is 1 or 2 or 5 or whatever. We don't know but you should.
Antonino Marino
Antonino Marino le 12 Fév 2021
where can i see how many arguments my app requires?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by