getting mldivide error in a common equation!

2 Ansichten (letzte 30 Tage)
MEXICO
MEXICO am 4 Apr. 2013
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;

Antworten (1)

Walter Roberson
Walter Roberson am 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)

Kategorien

Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by