s-function ソースコード管理について
이전 댓글 표시
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 のみが直接影響いれば問題ないと予想しますが、 この予想は正しいでしょうか。)
以上、ご教授よろしくお願いいたします。
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!