According to https://www.mathworks.com/help/wireless-testbench/gs/supported-sdr-devices.html the USRP X310 is not compatible with MATLAB & Simulink. However, the USRP X310 with any supported daughterboard is compatible with MATLAB, to varying degrees depending on which daughterboard is being used.
The USRP X310 with UBX 160 daughterboard has been supported since R2022b