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

 Risposta accettata

Scott MacKenzie
Scott MacKenzie il 27 Apr 2021
Modificato: Scott MacKenzie il 27 Apr 2021
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).

Più risposte (0)

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by