Bluetooth Connection MATLAB/ Arduino

Hello,

how can I send a vector from Arduino to Matlab via a Bluetooth connection?

The data has the following format on the Arduino side:

        long output[9];
        long dataPacket;
        for(int i = 0; i<9; i++){
            for(int j = 0; j<3; j++){
                byte dataByte = transfer(0x00);
                dataPacket = (dataPacket<<8) | dataByte;
            }
            output[i] = dataPacket;
            dataPacket = 0;
           }

How can I send the data synchronously to Matlab before output(i) is overwritten again? Is this even possible with a frequency of 1 MHz?

Many thanks in advance!

how can I send a vector from Arduino to Matlab via a Bluetooth connection?

EXACTLY the same way you would do it with a wired connection.

Is there a MATLAB support forum ?