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

 采纳的回答

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

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Performance and Memory 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by