Check if you have set the environment variable before running your application.
setenv('PATH',[getenv('PATH') ';' fullfile(matlabroot,'sys','FastDDS','win64','bin')])
There are some libs inside this folder you should have.
Honestly, I had much more success with RTI’s implementation in DDS Blockset.