sldv.condition
Test condition function for Stateflow charts and MATLAB Function blocks
Syntax
Description
sldv.condition( specifies that
                    expr)expr is true for every time step in a generated test case.
                Use any valid Boolean expression for
                    expr.
This function has no output and
                no impact on its parenting function, other than
                any indirect side effects of evaluating
                    expr. If you issue this function from the MATLAB® command line, the function has no
                effect.
Intersperse sldv.condition test conditions within MATLAB code or separate the conditions into a verification script.
The Test conditions option in the Test
                    generation pane applies to test conditions represented with the
                    sldv.condition function and with the Test Condition
                block.
Examples
Input Arguments
Alternatives
Instead of using the sldv.condition function, you can insert a
                Test Condition block in your model. To learn
            about the differences between Test Condition blocks and
                sldv.condition, see Workflow for Test Generation.
You can also specify test conditions by using MATLAB for code generation without using the sldv.condition
            function. Using sldv.condition instead of directly using MATLAB for code generation eliminates the need to:
- Express the constraints with Simulink® blocks. 
- Explicitly connect the condition output to a Simulink block. 
Version History
Introduced in R2009b
