Hi,
To read string from a serial port, you need to configure termination character first and then read. Use the following functions.
configureTerminator(s,"LF");
data = readline(s);
You can read more about the function configureTerminator
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!