Hello everybody,
I like someone to tell me why I have this problem in my script.
Please find below the results.
Thanks in advance.

 Réponse acceptée

Scott MacKenzie
Scott MacKenzie le 27 Avr 2021
Modifié(e) : Scott MacKenzie le 27 Avr 2021

0 votes

The error messages are clear enough. It seems you are using this function from the command prompt.
The first error message ("Unrecognized function or variable name 'nomsim'") occurs because the variable nomsim does not exist in MATLAB's workspace. Avoid this by, for example
>> nomsim = 'test';
>> num = 99;
>> gen_fdl(nomsim, num);
With this, the function gen_fdl will open test_99.fdl and, presumably, write data into it.
The second error message ("Non enough input arguments") occurs because you are calling the function gen_fdl without including input arguments. The function requires two input arguments, as correctly seen in your first example (except the argument nomsim does not exist).

Plus de réponses (0)

Catégories

En savoir plus sur Performance and Memory dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by