I think I found my answer. while installing the support package, you get te question shown in the attached image. The website only refers to a wireless connection.
"With MATLAB® Support Package for Raspberry Pi™ Hardware, you can remotely communicate with a Raspberry Pi computer and use it to control peripheral devices."
But is is also possible with a cable.