https://nl.mathworks.com/help/coder/nvidia/ref/jetson.getl4tversion.html
getL4TVersion - Get the L4T version of the NVIDIA Jetson hardware - MATLAB
This MATLAB function displays the version number of the Linux for Tegra (L4T) installed on the NVIDIA hardware.
get thenvidia jetsonversionhardwarematlab