Hi, while compiling (the code is not complete but due to my inexperience i’m tryng to built it piece by piece and check that each piece works fine) I got this message:

**scalar object ‘Rotation’ requires one element in initializer**

I don’t really know where is my error, I even tried to check online for similar compiling error but it wasn’t helpful.

```
#include <MatrixMath.h>
#include <superSerial.h>
//Global variable
double Rotation[4][4];
float beta;
//LQR controller
void setup(){
Serial.begin(115200);
int m=4;
int n=6;
//coming from MatLab LQR toolbox, precalculated we can even have various K for different type of navigation i.e: with different weight on Q and R//
const float K[4][6]={{0, 0.7071, 0.2236, 0, 0.8468, 0.2493}, //coming from MatLab LQR toolbox//
{-0.7071, 0, 0.2236, -0.8468, 0, 0.2493},
{0, -0.7071, 0.2236, 0, -0.8468, 0.2493},
{0.7071, 0.0000, 0.2236, 0.8468, 0, 0.2493}};
}
void loop(){
Serial.println("beta,in radians please");
beta = sSerial.readFloat();
rotationmatrix(beta);
Serial.println( Rotation[4][4]);
}
void rotationmatrix(float angle){
double coth,sith;
coth=cos(angle);
sith=sin(angle);
double Rotation={{(pow(coth,2)/2 + coth/2 + pow(sith,2)/2)/(pow(coth,2) + pow(sith,2)), sith/(2*(pow(coth,2) + pow(sith,2))), (pow(coth,2)/2 - coth/2 + pow(sith,2)/2)/(pow(coth,2) + pow(sith,2)), -sith/(2*(pow(coth,2) + pow(sith,2)))},
{-sith/(2*(pow(coth,2) + pow(sith,2))), (pow(coth,2)/2 + coth/2 + pow(sith,2)/2)/(pow(coth,2) + pow(sith,2)), sith/(2*(pow(coth,2) + pow(sith,2))), (pow(coth,2)/2 - coth/2 + pow(sith,2)/2)/(pow(coth,2) + pow(sith,2))},
{(pow(coth,2)/2 - coth/2 + pow(sith,2)/2)/(pow(coth,2) + pow(sith,2)), -sith/(2*(pow(coth,2) + pow(sith,2))), (pow(coth,2)/2 + coth/2 + pow(sith,2)/2)/(pow(coth,2) + pow(sith,2)), sith/(2*(pow(coth,2) + pow(sith,2)))},
{sith/(2*(pow(coth,2) + pow(sith,2))), (pow(coth,2)/2 - coth/2 + pow(sith,2)/2)/(pow(coth,2) + pow(sith,2)), -sith/(2*(pow(coth,2) + pow(sith,2))), (pow(coth,2)/2 + coth/2 + pow(sith,2)/2)/(pow(coth,2) + pow(sith,2))}};
}
```