m1sqrtm2w02w22d2w2 Undefined operator for input arguments o
m=((1)./((sqrt((m).^2))*((((w_0).^2)-(w).^2)).^2)+((d).^2)*((w).^2));
Undefined operator \'.^\' for input arguments of type \'cell\'.
This is equation is being put into MatLab and I am not sure how to fix it.
What am I doing wrong?
Solution
Define m, w_0,w, d variables correctly.
I am not getting any error after run the given statement.
m=2;
w_0 = 4;
d=4;
w=6;
m=((1)./((sqrt((m).^2))*((((w_0).^2)-(w).^2)).^2)+((d).^2)*((w).^2));
Giving the result with out any error
m = 576.00
