One way to do this is first convert the MATLAB datetime table to a uint64 array in the NTP format with MATLAB function convertTo(), passed the array as a parameter or as a file, then convert the uint64 array back using the python function ntp_to_system_time() from the ntplib. Other intermediate formats like posixtime or juliandate could be used in similar ways.