Arrays have incompatible sizes for this operation
17 views (last 30 days)
Hey guys, thanks in advance.
Im trying to apply this equation on matlab
However i Keep getting this error , arrays have incompatible sizes for this operation, I dont understand since there are only constants and when there is a vector I do this .*
This is the code:
D is not getting any error, only H_BAC.
I ve attached the data
Voss on 12 Jul 2022
R1_matrix and Rm_matrix are 1x400:
Therefore, the expression involving subtracting Rm_matrix from R1_matrix gives a 1x400 vector (here stored as the variable temp):
temp = (R1_matrix-Rm_matrix+n*Lp)/c*fc;
The result of that expression should be multiplied element-wise by D, but D is 1x8000:
So you can't do it:
Hard to say what the right thing to do is with the information given.