I'm trying to connect Maltab and Arduino by this code:
But I get this message:
Open failed: Port: COM7 is not available. No ports are available. Use INSTRFIND to determine if other instrument objects are connected to the requested device.
What might be a proper reason?
I have another question which is; How can I save a text file
(.txt) from Matlab to Arduino SD card .. ? Wether opening a
.txt file in arduino or saving it from Matlab directly to Arduino SD card.