getting mldivide error in a common equation!
2 views (last 30 days)
Show older comments
i dont know what im doing wrong! its a simple equation with no vector and im getting
? ?? Error using ==> mldivide
Matrix dimensions must agree.
Error in ==> eqtest at 4
uo2=( (0.131*(denss-densf)*g*(c2*(yo2/dp)*sin(ang1))*(1+(1.732*tan(ang2))...
the script is
clc
entradas;
yo2=1;
uo2=( (0.131*(denss-densf)*g*(c2*(yo2/dp)*sin(ang1))*(1+(1.732*tan(ang2))...
)*sin(ang1))/(densf*((0.1651*cd)+(0.0982*cl))))^1/2;
0 Comments
Answers (1)
Walter Roberson
on 4 Apr 2013
Use ./ instead of /
Caution: N^1/2 means (N^1)/2 which is N/2 . If you want to take the square root use N^(1/2), or better yet use sqrt(N)
0 Comments
See Also
Categories
Find more on Numerical Integration and Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!