Is there any possible way to generate M code from Simulink model

1 次查看(过去 30 天)
Hello, I want to generate a Requirements document from the existing Simulink model.
So, I am thinking to generate first m code from the simulink modela and then convert the same to requirements (Word) document.
Please help me with this and let me know if there are any other suggestions.

回答(1 个)

Harsh Sanghai
Harsh Sanghai 2023-3-9
Hi,
Another approach that you can take is to use the Simulink Requirements feature. Simulink Requirements allows you to create and manage requirements for Simulink models. You can create requirements directly in Simulink and trace them to the model elements. Simulink Requirements also provides tools to generate reports from the requirements.
Here are the general steps that you can follow to use the Simulink Requirements feature:
  1. Open the Simulink model that you want to create requirements for.
  2. Click on the "Requirements" button in the Simulink toolbar.
  3. In the "Requirements Editor" dialog box, create the requirements for your model.
  4. Use the traceability tools to trace the requirements to the model elements.
  5. Use the report generation tools to generate a requirements document.
Using the Simulink Requirements feature can save you time and effort in creating the requirements document. However, it requires some additional setup and configuration. You will need to create a requirements database and set up the traceability between the requirements and the model elements.
  1 个评论
Mandi Poornasri
Mandi Poornasri 2023-3-9
Hello Harsha,
Thanks for the information,
My Requirements looks like a PSEUDO CODE.
So, the Requirements generated from this concept seems different from need.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by