1. install matlab

2. choose install hardware support package like below

3. search "USRP", install usrp support package.

after this you can open usrp example to run.

for matlab version lower than R2017 may have this error "Fatal Alert: Protocol_version" during installing hardware support package. for this error matlab have a work around: 

https://www.mathworks.com/support/bugreports/1741173?s_tid=mwa_osa_a