1

I don't want to use something like serial ('COM2') to read data from Arduino by Matlab.

Is there any way in Matlab to identify COM port of an Arduino board automatically?

0

1 Answer 1

1

You can use the arduino command (from the MATLAB Support Package for Arduino Hardware) without any arguments:

recreates the last successful connection to the Arduino® hardware. If that connection fails, it creates a connection to the first official Arduino hardware connected to your host computer via USB.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.