User`s guide

2 Create Your First Report
2-32
Add Display Logic
Note: This section builds on the previous tasks described in the step-by-step example
summarized in “Create a MATLAB Report” on page 2-2.
If you have not completed the previous sections of this example, see open the completed
report setup file: Magic Squares Report.
Use Logical If, Logical Then, and Logical Else components to determine whether to
display the magic square as an array of numbers or as an image.
1
In the Outline pane on the left, select the Eval component.
2
On the Library pane in the middle, under the Logical and Flow Control
category, double-click Logical If.
3
On the Properties pane on the right, in the Test Expression text box, replace the
existing text with the following text: