Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to generate S-Function using legacy tool box for a Function having multiple function calls in it

2 ビュー (過去 30 日間)
Ajay Pherwani
Ajay Pherwani 2014 年 2 月 11 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am working on S-Function and I am still a beginner.
For a simple adder function I was able to generate S-function block and simulate it using Legacy tool box.
But When i started working on complex function , like a function having call to another function I started facing problems/errors when I compiled the c functions, like :
" c:\users\xyz\appdata\local\temp\mex_zg~1\function_name.obj .text: undefined reference to '_Function_call_1' "
where function_name is file name Function_call_1 : is a called function
and similar error was for all the function calls present inside the function.
Can you please guide me , where I am going wrong ? Is there any reference for these types of code , on how to generate S-Function ?

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2014 年 4 月 18 日
Did you include the source/library file that contains the definition to '_Function_call_1' in the 'SourceFiles' or 'HostLibFiles' fields of the legacy code tool data structure?

この質問は閉じられています。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by