getting mldivide error in a common equation!
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Walter Roberson
2013년 4월 4일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!