MATLAB: I’m having a problem connecting to the raspberry pi, can anyone tell me what this error means and how I can solve the problem

raspberry piraspberry pi 3

This happens whenever I use the 'test connection' option and a similar error saying 'undefined variable matlabshared' shows up if I try to deploy my code to the hardware. I tried reinstalling the support package, but that dosen't seem to work.

Best Answer

Hello Varun,
I suggest re-installing the MATLAB support packages for the Raspberry Pi hardware (if you have not done so already). To do this, in MATLAB, type:
>> supportPackageInstaller
(On older versions of MATLAB the command is "targetinstaller")
Then, navigate to the MATLAB Support Package for Raspberry Pi Hardware on the subsequent Add-On Explorer page that opens and follow the on-screen instructions.
Thanks,
David