Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

jc_0521: Use of the return value from graphical functions

ID: Title

jc_0521: Use of the return value from graphical functions

Priority

Recommended

Scope

J-MAAB

MATLAB Versions

All

Prerequisites

None

Description

The return value from a graphical function should not be used directly in a comparison operation.

Correct

An intermediate variable is used in the conditional expression after the assignment of the return value from the function temp_test to the intermediate variable a.

Incorrect

Return value of the function temp_test is used in the conditional expression.

Rationale

  • Readability

  • Verification and Validation

  • Code Generation

Last Changed

V2.0

Model Advisor Check

By Task > Modeling Standards for MAAB > Stateflow > Check usage of return values from a graphical function in Stateflow charts

For check details, see Check usage of return values from a graphical function in Stateflow charts (Simulink Verification and Validation).

Introduced in R2010a

Was this topic helpful?