| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Instrument Control Toolbox |
| Contents | Index |
| Learn more about Instrument Control Toolbox |
You configure UserData 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 the get function or the dot notation.
Usage | Any instrument object |
Read only | Never |
Data type | Any type |
The default value is an empty vector.
Suppose you create the serial port object on a Windows machine associated with the serial port COM1.
s = serial('COM1');You can associate data with s by storing it in UserData.
coeff.a = 1.0; coeff.b = -1.25; s.UserData = coeff
![]() | Type | ValuesReceived | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |