Type indicates the type of the object. Type is automatically defined after the serial port object is created with the serial function. The Type value is always serial.
Type is always serial. This value is automatically defined when the serial port object is created.
Suppose you create a serial port object associated with the serial port COM1.
s = serial('COM1');
The value of the Type property is serial, which is the object class.
s.Type ans = serial
You can also display the object class with the whos command.
Name Size Bytes Class s 1x1 644 serial object Grand total is 18 elements using 644 bytes