I'm using the Arduino Mega 2560 as signal conditioner and what I need is to send the value of 11 variables to MATLAB for further use. I know how to use it for one variable but what is the way to send all of them? With headers for each variable or as an array of integers, and I'll manually assign the value of each indexed value to the appropriate variable. Thanks in advance!

I don't know Matlab but, presumably, you have to send the data in a format that it can accept.

Maybe you send the data as a string of comma separated values (CSV) - for example "123, 45, -235, 11"

That is easy to construct with a series of Serial.print() statements.

...R

Turns out Matlab is uber friendly with Arduino. Just a " " between the values, and Matlab reads it as a vector.

Thank you.