Simulink: how to import external jar file
4 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I am using the MATLAB fcn block in Simulink for some custom function I've in Matlab. My question is the following:
is it possible to use the same Matlab Fcn block, to create a custom matlab function which uses methods available in an external jar file; for example, in matlab i can import the package available in a jar file and uses the classes and methods available here. Is it possible to do with Simulink..if yes, can you tell me how to do it?
thank you
best regards
Paolo
0 件のコメント
採用された回答
Salini S Nair
2021 年 10 月 4 日
I understand that you want to import a JAR file to Simulink and use the methods available in it. The following MATLAB answer explains how you can achieve this functionality using the Level 2 MATLAB S-function block in Simulink: Is it possible to call JAVA code from within Simulink? - MATLAB Answers - MATLAB Central (mathworks.com). It is not advisable to perform this using the Embedded MATLAB function block since it does not support the use of ‘import’ function as mentioned in the above link.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!