S!

Guys, I´m building a function that uses values stored in matrices. I'd like to make a independent function, it is, I'd like to write the matrices direct in the VBA code. What is the correct sintaxe? Is needed to difene element by element or VBA accepts matrix definition like Matlab, i.e. matrix A in the code below, or accepts only definition like the B array below?

The Code below give a

Guys, I´m building a function that uses values stored in matrices. I'd like to make a independent function, it is, I'd like to write the matrices direct in the VBA code. What is the correct sintaxe? Is needed to difene element by element or VBA accepts matrix definition like Matlab, i.e. matrix A in the code below, or accepts only definition like the B array below?

The Code below give a

Code:

A = [1 2 3 4 5 6 7 8 9] B(1,1) = 1 B(1,2) = 2...

## Comment