# Function: deserialize

## CALL:

S = deserialize(byteData, ishex)

## DESCRIPTION:

Convert a serialized Matlab variable to its original form.

## INPUT:

byteData | Nx1 int8 |
    serialized form of matlab variable. See serialize.
ishex | boolean |
    if false (default)
        byteData is uint8 byte array
    if true:
        byteData is char array with elements in
        0123456789ABCDEF.

## OUTPUT:

S | any |
    Deserialized matlab variable