Error using ==> mrdivide
Matrix dimensions must agree.
Error in ==> RF_Model at 179
h_L=0.86/sqrt(3+(1/2/lambda_i)+(0.86*l*u_B/pi/g/D_i)^2);

1 件のコメント

Gowtham
Gowtham 2011 年 6 月 9 日
do i need to change it to ./ or use .\ ???

サインインしてコメントする。

 採用された回答

Sean de Wolski
Sean de Wolski 2011 年 6 月 9 日

0 投票

You probably want the vectorized version?
h_L=0.86./sqrt(3+(1./2./lambda_i)+(0.86.*l.*u_B./pi./g./D_i).^2);
Everything will be element by element instead of matrix division
doc vectorize

その他の回答 (1 件)

Ivan van der Kroon
Ivan van der Kroon 2011 年 6 月 9 日

0 投票

./ for right and .\ for left division

1 件のコメント

Gowtham
Gowtham 2011 年 6 月 9 日
thanks for replying ...do i need to replace all the / with the respective one ?

サインインしてコメントする。

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by