MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
Test Performance Using Scripts or Functions ....... 33-183

Test Performance Using Classes................. 33-189

Measure Fast Executing Test Code............... 33-196

Create Mock Object............................ 33-200

Specify Mock Object Behavior ................... 33-209
Define Mock Method Behavior................. 33-209
Define Mock Property Behavior................ 33-211
Define Repeating and Subsequent Behavior....... 33-212
Summary of Behaviors....................... 33-214

Qualify Mock Object Interaction................. 33-216
Qualify Mock Method Interaction ............... 33-217
Qualify Mock Property Interaction.............. 33-218
Use Mock Object Constraints.................. 33-219
Summary of Qualifications.................... 33-221

System object Usage and Authoring


34


What Are System Objects?............................ 34-2
Running a System Object........................... 34-3
System Object Functions........................... 34-4

System Objects vs MATLAB Functions................... 34-6
System Objects vs. MATLAB Functions ................. 34-6
Process Audio Data Using Only MATLAB Functions Code... 34-6
Process Audio Data Using System Objects.............. 34-7

System Design in MATLAB Using System Objects......... 34-9
System Design and Simulation in MATLAB .............. 34-9
Create Individual Components ...................... 34-10
Configure Components............................ 34-10
Create and Configure Components at the Same Time..... 34-11
Assemble Components Into System................... 34-12
Run Your System................................ 34-12
Reconfiguring Objects............................ 34-13

xxxviii Contents

Free download pdf