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

 채택된 답변

Scott MacKenzie
Scott MacKenzie 2021년 4월 27일
편집: Scott MacKenzie 2021년 4월 27일

0 개 추천

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