s-function ソースコード管理について
Show older comments
s-function ソースコード管理に関する質問です。
下記のようにフォルダ0の下にフォルダ1と2があり、 main.mdl の中で s-function の s_func1 と s_func2 を使っているとします。 s-function 自体のビルドは、フォルダ1と2の各々に移動して実施しています。
フォルダ0 main.mdl フォルダ1 s_func1.h s_func1.c s_func1.mexw64 フォルダ2 s_func2.h s_func2.c s_func2.mexw64
フォルダ0上で main.mdl をビルドする際、addpath でフォルダ1と2を参照しています。 このとき
(1) s_func*.h と s_func*.c は main.mdl のビルドに直接関係していますか。 それとも、s_func*.mexw64 のみが直接関係していますか。 (2) s_func1.h と s_func2.h は、名前が同じで内容が異なるように設計しても 問題ないでしょうか。 (質問 (1) で、s_func*.mexw64 のみが直接影響いれば問題ないと予想しますが、 この予想は正しいでしょうか。)
以上、ご教授よろしくお願いいたします。
Accepted Answer
More Answers (0)
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!