In R2021b, MATLAB uses Fast DDS only.
In 22a (Foxy support), we honour the environement variable that you are setting. And you can only switch between Fast DDS and Cyclone DDS.
From 22b, we added a new feature to easily switch between different DDS using preferences. This feature allows you to switch to other RMW implementations too.
I recommend you to upgrade to R2023b release where we support Humble and also switching RMW feature available.
Are you installaing MATLAB on Ubuntu 22.04 ? If so, would be good to upgrade to R2023b. Please provide more information in your setup and usage of different DDS.
Thanks,
Jagadeesh K.