MATLAB SIMULINK VERIFICATION AND VALIDATION - S Guide de l'utilisateur Page 389

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 674
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 388
Model Coverage for MATLAB Functions
18-23
To collect coverage for these functions, on the Coverage tab of the Coverage Settings
dialog box, select the Simulink Design Verifier coverage metric.
The following section provides model coverage examples for each of these situations.
Examples: Model Coverage for MATLAB Functions
“Model Coverage for MATLAB Function Blocks” on page 18-23
“Model Coverage for MATLAB Functions in an External File” on page 18-33
“Model Coverage for Simulink Design Verifier MATLAB Functions” on page 18-33
Model Coverage for MATLAB Function Blocks
Simulink Verification and Validation software measures model coverage for functions in
a MATLAB Function block.
The following model contains two MATLAB functions in its MATLAB Function block:
In the Configuration Parameters dialog box, on the Solver pane, under Solver options,
the simulation parameters are set as follows:
TypeFixed-step
Solverdiscrete (no continuous states)
Fixed-step size (fundamental sample time)1
The MATLAB Function block contains two functions:
The top-level function, run_intersect_test, sends the coordinates for two
rectangles, one fixed and the other moving, as arguments to rect_intersect.
The local function, rect_intersect, tests for intersection between the two
rectangles. The origin of the moving rectangle increases by 1 in the x and y directions
with each time step.
Vue de la page 388
1 2 ... 384 385 386 387 388 389 390 391 392 393 394 ... 673 674

Commentaires sur ces manuels

Pas de commentaire