MATLAB: Get signals from arduino uno to matlab R2017b

arduinoexcel

I am making an attendance system using arduino and matlab. I want to know that how can I get the signals from arduino uno to matlab when I press any button on arduino? I want signals on excel sheet in matlab
Thnxxx in advance…

Best Answer

When you detect a button being pressed on the arduino, then use Serial.print and Serial.println to send data to MATLAB. See https://www.mathworks.com/matlabcentral/answers/369764-using-fscanf-command-for-distance-sensor#comment_510370 for example code.
Related Question