MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
Restrict Input Specification Changes................. 34-56

Summary of Call Sequence ........................... 34-59
Setup Call Sequence.............................. 34-59
Running the Object or Step Call Sequence ............. 34-60
Reset Method Call Sequence....................... 34-62
Release Method Call Sequence...................... 34-62

Detailed Call Sequence.............................. 34-63
setup Call Sequence .............................. 34-63
Running the Object or step Call Sequence............. 34-64
reset Call Sequence .............................. 34-64
release Call Sequence ............................ 34-64

Tips for Defining System Objects...................... 34-66
General ....................................... 34-66
Inputs and Outputs ............................... 34-66
Using ~ as an Input Argument in Method Definitions ..... 34-66
Properties..................................... 34-67
Text Comparisons................................ 34-67
Simulink ....................................... 34-68
Code Generation ................................ 34-68

Insert System Object Code Using MATLAB Editor........ 34-69
Define System Objects with Code Insertion............. 34-69
Create a Temperature Enumeration.................. 34-73
Create Custom Property for Freezing Point............. 34-75
Add Method to Validate Inputs ...................... 34-76

Analyze System Object Code .......................... 34-77
View and Navigate System object Code ............... 34-77
Example: Go to StepImpl Method Using Analyzer........ 34-77

Use Global Variables in System Objects ................ 34-80
System Object Global Variables in MATLAB............ 34-80
System Object Global Variables in Simulink............ 34-80

xl Contents

Free download pdf