I got an error for 2017a version to connect to bbb.
>> bbb = beaglebone('192.168.7.2','root', 'root')
Error using beaglebone (line 236) Cannot establish an SSH connection to the board with device address "192.168.7.2", user name "root", password "root". Check if device address, user name and password are correct.
I verified the ssh connection from command line and it's working so it's not the ssh issue.