mldivide error

6 visualizaciones (últimos 30 días)
Gowtham
Gowtham el 9 de Jun. de 2011
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 comentario
Gowtham
Gowtham el 9 de Jun. de 2011
do i need to change it to ./ or use .\ ???

Iniciar sesión para comentar.

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 9 de Jun. de 2011
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

Más respuestas (1)

Ivan van der Kroon
Ivan van der Kroon el 9 de Jun. de 2011
./ for right and .\ for left division
  1 comentario
Gowtham
Gowtham el 9 de Jun. de 2011
thanks for replying ...do i need to replace all the / with the respective one ?

Iniciar sesión para comentar.

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by