Ask about matrix programming

hello everyone..i am newbie in programming XD... i want to ask:
can i create 3X3 matrix in arduino program?.

if it's possible, how to write it?.

thanks :slight_smile:

Regard

int matrix [3][3];

Arduino programs are C++ programs so use the syntax AWOL posted.

ok. if i have matrix
A=1 2 4
1 5 4
1 1 2
[/table]
how to write it in arduino??.

thanks. :slight_smile:

how to write it in arduino??.

Just like in any other C/C++ environment.

int matrix[3][3] = {1, 2, 4,
1, 5, 4,
1, 1, 2};

What does this have to to with the Arduino?

PaulS:

how to write it in arduino??.

Just like in any other C/C++ environment.

int matrix[3][3] = {1, 2, 4,
1, 5, 4,
1, 1, 2};

What does this have to to with the Arduino?

Hello...i want to create my controller in arduino mega. my controller need a parameter in matrix. i'll try it soon. thanks :))