UserData
Specify data to associate with instrument object
Description
You configureUserData
to store data that you want to associate with an instrument object. The object does not use this data directly, but you can access it using dot notation.
Characteristics
Usage |
Any instrument object |
Read only |
Never |
Data type |
Any type |
值
The default value is an empty vector.
Examples
Create the serial port object on a Windows®machine associated with the serial port COM1.
s = serial('COM1');
You can associate data withs
by storing it inUserData
.
coeff.a = 1.0; coeff.b = -1.25; s.UserData = coeff