Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6344165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:34:59+00:00 2026-05-24T20:34:59+00:00

While connecting my Com-port using matlab, many a times(4 out of 5) I get

  • 0

While connecting my Com-port using matlab, many a times(4 out of 5) I get an error

??? Error using ==> serial.fopen at 72
Port: COM21 is not available. Available ports: COM3,
COM10, COM17, COM18.

However , sometimes it gets connected and responds as expected.
Can anyone tell me whats the problem with this?

By the way , I am using this snippet to connect my microcontroller to PC through USB

s = serial('COM21');        //  code to initialize the req COM i.e. COM21 for me

fopen(s);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:34:59+00:00Added an answer on May 24, 2026 at 8:34 pm

    I ran into this issue before. It turns out MATLAB doesn’t really handle plug-and-play very well, as evidenced by this thread:

    http://www.mathworks.com/matlabcentral/newsreader/view_thread/311133

    Long story short: if you want MATLAB to detect a hardware change, you need to restart it. MATLAB seems to only look for devices when it starts up.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My application times out while trying to connect to host. The timeout time is
I have problem while connecting to mysql database using ADO.NET Driver for MySQL (Connector/NET)
I've been developing with kinect XBOX 360 for a while. Today, after connecting a
I've got a problem converting an object property to string while using reflection... string
I get a communication link failure while application tries to establish a connection with
After a while using the website, loading contents, etc.. this message shows Fill: SelectCommand.Connection
I have given client's queue connection details to connect to it using Camel. While
i am trying to establish a connection with access database using java... But while
I am having problem in connecting to mysql database when I am using this
I'm trying to send emails out using MIME::Lite with authentication. Here's the code snippet

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.