Importing C code and generate the test cases using Matlab 2020a
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to import the manually written C code into Simulink and perform below tasks.
- Generate the tests/ test cases with report.
- 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
2025년 6월 20일
Hi @Paturi
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 Exchange에서 Results, Reporting, and Test File Management에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!