How do I export a Systems Composer model into a .jpeg file or similar format for display in reports
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Joe Burrowes
el 1 de Mzo. de 2023
As the title suggests, I would like to take a software architecture I've designed and linked to a Simulink model in Systems Composer and export this to an image.
This export should have data types and signal names included.
6 comentarios
Luca Ferro
el 1 de Mzo. de 2023
you can check a very similar thread here if you want to do it programmatically
DGM
el 25 de Jun. de 2024
Editada: DGM
el 25 de Jun. de 2024
This is tangential, but I think it's relevant general advice.
I don't have a modern version of Simulink, so I'm not familiar with the modern report generator or other utilities. Either way, using JPG as output is almost certainly inappropriate. For synthetic images like this, JPG will do nothing but degrade the clarity of lines and text, and it will produce consistently larger files. Unless you're feeding it to some incapable software that accepts nothing but JPG, there's no benefit that can make up for the damage it causes.
That's a 500% upscaled sample of two screenshots from Simulink. The JPG version is 5x the size of the PNG version. While the damage might seem small, there's zero reason to accept it if it can be easily avoided.
Respuesta aceptada
Pratheek
el 1 de Mzo. de 2023
Editada: Josh Kahn
el 25 de Jun. de 2024
There are two ways:
1. You can use the Simulink Report Generator toolbox with the System Composer APIs to create a new architecture report: https://www.mathworks.com/help/systemcomposer/ug/report-generation-system-architectures.html
2. You can use the GUI to grab a snapshot of the current model or view.
For a Model:
- Open your Systems Composer model that you want to export.
- Navigate to the view you want to export.
- Click on Format option in the toolstrip.
- Select the screenshot option and a dropdown will apper.
- Choose Send bitmap to clipboard.
- Then paste the image where ever required.
For a View, use the export button:
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre System Composer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!