User`s manual

8 Serial Port I/O
8-22
Parity = none
PinStatus = [1x1 struct]
PinStatusFcn =
Port = COM1
ReadAsyncMode = continuous
RequestToSend = on
StopBits = 1
Terminator = LF
To display the current value for one property, you supply the property name to
get.
get(s,'OutputBufferSize')
ans =
512
To display the current values for multiple properties, you must include the
property names as elements of a cell array.
get(s,{'Parity','TransferStatus'})
ans =
'none' 'idle'
You can also use the dot notation to display a single property value.
s.Parity
ans =
none
Configuring Property Values
You can configure property values using the set function
set(s,'BaudRate',4800);
or the dot notation.
s.BaudRate = 4800;
To configure values for multiple properties, you can supply multiple property
name/property value pairs to
set.
set(s,'DataBits',7,'Name','Test1-serial')