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

1 view (last 30 days)
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.

Answers (1)

Harsh Sanghai
Harsh Sanghai on 9 Mar 2023
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 Comment
Mandi Poornasri
Mandi Poornasri on 9 Mar 2023
Hello Harsha,
Thanks for the information,
My Requirements looks like a PSEUDO CODE.
So, the Requirements generated from this concept seems different from need.

Sign in to comment.

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!