Error using / matrix dimensions must agree
4 views (last 30 days)
Star Strider on 15 Nov 2022
The ‘y’ expression is not a function of ‘x’.
Correcting that (and assuming the independent variable is actually ‘ec’) —
ec = linspace(0, 0.035, 50);
Mt = rand; % Missing Value
h = rand; % Missing Value
plot(ec, real(y), 'DisplayName','Real')
plot(ec, imag(y), 'DisplayName','Imaginary')
There were also some missing element-wise operators.