I am connecting to a hardware device via a serial interface, writing and reading data to and from that device. Reading '80' from the device indicates successful communication.
Why does MATLAB print a special character with the data read from my device?
s = serial('COM4');set(s,'Baudrate',19200,'Terminator','CR/LF');fopen(s);fprintf(s,'cmd401');fscanf(s)ans =80
Best Answer