Urgent* Deal with a 7*8 sensing matrix (FSR) using Matlab

Hi everyone,

I am kind of new to Arduino but in the past month I managed to built up a sensing matrix with the help of Multiplexer.
The serial output can be collected using all back-to-basic codes with pin switch using the combination of 3 digital I/O pins.

const byte addressA = 2; // the multiplexer address select lines (A/B/C)
const byte addressB = 3;
const byte addressC = 4;
byte numberOfSensors = 56;

XXX
digitalWrite (addressA, (sensorI & 1) ? HIGH:LOW);
digitalWrite (addressB, (sensorI & 2) ? HIGH:LOW);
digitalWrite (addressC, (sensorI & 4) ? HIGH:LOW);
// now read the sensor at A0
return analogRead (sensorM1);

However the next step is a truly pain for me because I'm trying to shift all of these to Matlab for some further data processing like Neural network.
I clearly understand that the a. analogRead() but it's been hard to get the data from Arduino

Hardware: 7*8 Force sensitive resistors
Arduino MEGA 2560
Interface: Matlab 2012a

Would you be so kind to give me some clue/ break through?
Thank you in advance

Hi everyone,

I believe this problem is more likely to be Multiplexing related.

I am kind of new to Arduino but in the past month I managed to built up a sensing matrix with the help of Multiplexer.
The serial output can be collected using all back-to-basic codes with pin switch using the combination of 3 digital I/O pins.

const byte addressA = 2; // the multiplexer address select lines (A/B/C)
const byte addressB = 3;
const byte addressC = 4;
byte numberOfSensors = 56;

XXX
digitalWrite (addressA, (sensorI & 1) ? HIGH:LOW);
digitalWrite (addressB, (sensorI & 2) ? HIGH:LOW);
digitalWrite (addressC, (sensorI & 4) ? HIGH:LOW);
// now read the sensor at A0
return analogRead (sensorM1);

However the next step is a truly pain for me because I'm trying to shift all of these to Matlab for some further data processing like Neural network.
I clearly understand that the a. analogRead() but it's been hard to get the data from Arduino

Hardware: 7*8 Force sensitive resistors
Arduino MEGA 2560
Interface: Matlab 2012a
]:smiley: ]:smiley: ]:smiley: ]:smiley: ]:smiley:
Would you be so kind to give me some clue/ break through?
Thank you in advance

moderatore: please do not crosspost - it costs everyone double time

Google "arduino matlab" for lots of ideas.

Thanks mate. There's a fantastic channel on Youtube for Arduino Matlab