MATLAB Programming Fundamentals - MathWorks
Map to Different Value Types It is fairly common to store other classes, such as structures or cell arrays, in a Map structure. ...
destination: 'Granada' reserved: '30-Apr-2008' origin: 'JFK' Using ticketMap and seatingMap together, you can find the name of t ...
Related Examples “Create Map Object” on page 14-6 “Create Structure Array” on page 11-2 “Create Cell Array” on page 12-3 “Exami ...
...
Combining Unlike Classes “Valid Combinations of Unlike Classes” on page 15-2 “Combining Unlike Integer Types” on page 15-3 “Com ...
Valid Combinations of Unlike Classes Matrices and arrays can be composed of elements of most any MATLAB data type as long as all ...
Combining Unlike Integer Types In this section... “Overview” on page 15-3 “Example of Combining Unlike Integer Sizes” on page 15 ...
50 127 NoteYou can find the maximum or minimum values for any MATLAB integer type using the intmax and intmin functions. For flo ...
Combining Integer and Noninteger Data If you combine integers with double, single, or logical classes, all elements of the resul ...
Combining Cell Arrays with Non-Cell Arrays Combining a number of arrays in which one or more is a cell array returns a new cell ...
Empty Matrices If you construct a matrix using empty matrix elements, the empty matrices are ignored in the resulting matrix: A ...
Concatenation Examples In this section... “Combining Single and Double Types” on page 15-8 “Combining Integer and Double Types” ...
Combining Character and Double Types Combining character values with double values yields a character matrix. MATLAB converts th ...
...
Using Objects 16 ...
Object Behavior In this section... “Two Copy Behaviors” on page 16-2 “Handle Object Copy” on page 16-2 “Value Object Copy Behavi ...
a = 6; b b = 8 Clearing a does not affect b: clear a b b = 8 Value Object Properties The copy behavior of values stored as prope ...
end end Create an object of this class: hobj1 = HdClass(8) Because this statement is not terminated with a semicolon, MATLAB dis ...
Because hobj2 and hobj1 are handles to the same object, changing the copy, hobj2, also changes the data you access through handl ...
Deleting Handle Objects To remove an object referenced by any number of handles, use delete. Given hobj1 and hobj2, which both r ...
«
26
27
28
29
30
31
32
33
34
35
»
Free download pdf