MATLAB: How to log can data from can bus

vehicle network toolbox

How to log can data from can bus and Replay? Today,I use CAN Log Block to log can data from can bus,But I found that .mat file can't Replay ,why?