I am using Matlab to read data from a serial port coming through a microprocessor. The data is in hexadecimal format with each sample of 4 bytes(32 bits). When I read this d
serialOne=serial('COM1', 'BaudRate', 9600);
fopen(serialOne);
fprintf(serialOne,'textFile.txt'); <<<---this is for write (for read, use fscanf)
fclose(serialOne);