Documentation Center    • 평가판   • 제품 업데이트  Mapping to Different
Value Types  It is fairly common to store other classes, such as
structures or cell arrays, in a Map structure. However, Maps are
most memory efficient when the data stored in them belongs to
one of the basic MATLAB® types such as double, char, integers,
and logicals.  Mapping to a Structure Array  The following
example maps airline seat numbers to structures that contain
information on who occupies the seat. To start out, create the
following structure array:  s1.ticketNum = '2S185';
s1.destination = 'Barbados'; s1.reserved = '06-May-2008';
s1.origin = 'La Guardia'; s2.ticketNum = '947F4'; s2.destination
= 'St. John'; s2.reserved = '14-Apr-2008'; s2.origin =
'Oakland'; s3.ticketNum = 'A479GY'; s3.destination = 'St.
Lucia'; s3.reserved = '28-Mar-2008'; s3.origin = 'JFK';
s4.ticketNum = 'B7398'; s4.destination = 'Granada'; s4.reserved
= '30-Apr-2008'; s4.origin = 'JFK'; s5.ticketNum = 'NZ1452';
s5.destination = 'Aruba'; s5.reserved = '01-May-2008'