Discard all messages from CAN channel
discard(canch) discards messages that are
available to receive on the channel,
CAN channel that you want to discard the messages from.
Set up a CAN channel to receive messages and discard the messages received by the channel.
Create a CAN channel to receive messages and start the channel:
rxCh = canChannel('Vector','CANcaseXL 1',1); start (rxCh)
Discard all messages in this channel: