I have a similar case as raised in this thread https://ez.analog.com/message/253679?et=watches.email.thread#comment-253679 , but matlab still is crashing and I can't solve the problem. I have both libiio 0.8 on both local and remote. Previously the ad9361_matlab.m example was working after I uninstalled visual studio 2015 due to license and installed 2013 one, it gave this problem. For your information I did install libiio again.
Could you please advise?