When I use the code:

 mypi = raspi('','pi','raspberry')

It shows this error:

Error using raspi (line 169) Cannot establish a TCP/IP 

connection to the board with device address "".

Caused by: Error using raspi (line 165) Cannot create a 

communication link with the remote server. Please check the input arguments(ADDRESS and PORT) 

and make sure the server is running. Additional Information: 

No connection could be made because the target machine actively refused it.

I can ping my Pi using its ip address and connect to ssh using PuTTy but seems like MATLAB is looking for a PORT. I have no idea on what ports can be used nor how to open ports in Raspberry Pi. Help


Please, check whether support package installation is correct version or not. If it is correct, please retry to install the support package. During the installation, you will encounter the firmware installation on the SD card of the Rasp Pi. After that, you have to confirm whether the installation is successful or not. If you didn't perform the firmware installation on the SD card, you have to try to install the firmware on the SD card, tying "targetupdater" on the matlab command line. It will do the process again.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.