mldivide error

3 次查看(过去 30 天)
Gowtham
Gowtham 2011-6-9
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
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
./ 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 ?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by