MATLAB Answers

How can I add a link to an image in a document created with Simulink Report Generator 3.12 (R2012a)?

1 view (last 30 days)
In my generated report I want to have a tag or anchor for a system snapshot, which I can refer to from somewhere else in the document. Is there something similar like in LaTeX?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 5 Jul 2012
The ability to create an anchor for a system snapshot caption is not available in Simulink Report Generator.
To work around this issue, you can add an anchor to each section of the report where the snapshot is placed. This can be done by adding an empty paragraph with a link type anchor for each of the Simulink model snapshots. Then when a link is needed in another part of a document, it can be added to link to a specific figure.
Below you can find two small example rpt-files showing this approach:
The first one uses the figure number as Link Identifier. This has the advantage that you can run this report for any model. The disadvantage is, that the figure numbers could change when including more snapshots and thus the references would not match anymore.
The second one uses the system names instead of figure numbers as Link Identifier. Thus you avoid difficulties when including further snapshots, but the rpt-file will be model dependent (in this case it is implemented for the vdp demo model).

  0 Comments

Sign in to comment.

More Answers (0)


Translated by