rameshrai
Full Member level 3

Hi,
How can I calculate the expectation value in matlab?
where the sum is over i = 1 to n and X(i) is a 2x2 matrix
what function to use to integrate, is trapz ok?
thanks
How can I calculate the expectation value in matlab?
Code:
M = Σ P(i)*X(i)
where the sum is over i = 1 to n and X(i) is a 2x2 matrix
what function to use to integrate, is trapz ok?
thanks