14-Alexandrite
March 31, 2024
Solved
array dimensions not matching
- March 31, 2024
- 1 reply
- 1695 views
I spent five hours trying to solve this problem, however could not figure it out, can you please help the sheet is attached

Hi
All three variables are one column vectors.
sigma0 is 11 high
hdash is 9 high
phi is 11 high
They by matrix multiplication cannot be multiplied together.
I do not know the context of the equation in the scheme of things so there is two options.
multiply h'dash x (sigma0 transposed) to get a 9 x 11 matrix multiplied by phi for a nine row column vector.
add some elements to hdash to get it to a 11 x 1 column vector to match size of sigma0 and phi then use vectorized element x element multiplication across the three matrices0
The ctrl equal signs in the example below should be changed to the consignment equals ":="

Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.