Importing C code and generate the test cases using Matlab 2020a

3 ビュー (過去 30 日間)
Paturi
Paturi 2025 年 6 月 20 日
コメント済み: Suman 2025 年 6 月 20 日
I want to import the manually written C code into Simulink and perform below tasks.
  1. Generate the tests/ test cases with report.
  2. Code coverage report.
Note: I am currently using Matlab version 2020a. Kindly share any valuable information how to proceed via steps in detail.
  1 件のコメント
Suman
Suman 2025 年 6 月 20 日
It is difficult to give detailed steps withou knowing the code and what it does. However, you can use S-Functions to use your custom code in Simulink. The Legacy Code Tool can help you with that. Here are some resources to help you get started:
1) For importing C code to Simulink:
2) For generating test cases:
3) For code coverage:
I hope that helps!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeResults, Reporting, and Test File Management についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by