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

 Respuesta aceptada

Scott MacKenzie
Scott MacKenzie el 27 de Abr. de 2021
Editada: Scott MacKenzie el 27 de Abr. de 2021

0 votos

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).

Más respuestas (0)

Categorías

Más información sobre Performance and Memory en Centro de ayuda y File Exchange.

Preguntada:

el 27 de Abr. de 2021

Editada:

el 27 de Abr. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by