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

1 Ansicht (letzte 30 Tage)
Mandi Poornasri
Mandi Poornasri am 9 Mär. 2023
Kommentiert: Mandi Poornasri am 9 Mär. 2023
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.

Antworten (1)

Harsh Sanghai
Harsh Sanghai am 9 Mär. 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 Kommentar
Mandi Poornasri
Mandi Poornasri am 9 Mär. 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by