Trying to install arduino in MATLAB

I have installed support package for Arduino but if I am trying to write and run the program, it will show "Failed to open serial port COM4 to communicate with Arduino board Uno. Make sure there is no other MATLAB Arduino object for this board. For troubleshooting, see Arduino Hardware Troubleshooting". Kindly help me with this.
Thank you

Answers (1)

Type the following in the command window and try to connect again. I hope it helps!
delete (instrfind)

1 Comment

Thank you for your answer Pasc peli, But still I get same kind of error, Is there any m-file I want to download or install.
Thank you

Sign in to comment.

Categories

Asked:

on 21 Aug 2016

Edited:

on 20 Jul 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!