- #1
- 163
- 1
Hello everyone.
I was wondering if someone could tell me how to write the next line of Mathematica code in Matlab.
vals is a eigenvalues vector, vecs is a eigenvector matrix and z is a vector of random variables of length 10
Thanks for your answer.
I was wondering if someone could tell me how to write the next line of Mathematica code in Matlab.
Code:
x = Sum [ Sqrt [ vals[ [ j ] ] ] * vecs [ [ j, All ] ] * z [ [ j ] ] , {j,1,10}
Thanks for your answer.