Hi
I'm new to matlab but a beginner in using arduino. So I'm using a pulse sensor to detect the heart rate and want real-time plotting. The input is A0 and the output is a led light at pin 13. I get the data from the serial monitor but I'm not sure how to transfer into matlab. I have download the arduinoIo package and so far my code is this:
if true % code
endclear a;a = arduino('COM1')a.pinMode(13, 'OUTPUT');a.pinMode(A0, 'INPUT')
Can anyone please help thanks
Best Answer