フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I am getting the error using matrix"Error using + matrix diemension must agree" How I can remove this error?

1 回表示 (過去 30 日間)
Ritesh Chaurasia
Ritesh Chaurasia 2014 年 10 月 28 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am Using the matrix which is given below.
XC=[-(i/(beta1*eta2))*((u2*diff(besselj(n,u2*r1)))+(1/r1)*besselj(n,u2*r1)), -(i/(beta1*eta2))*((u2*diff(bessely(n,u2*r1)))+(1/r1)*bessely(n,u2*r1)),0,0;... ((i*eta)/(omega*u0))*((u*diff(besselj(n,u*r1)))+(1/r1)*besselj(n,u*r1)),((i*eta)/(omega*u0))*((u*diff(bessely(n,u*r1)))+(1/r1)*bessely(n,u*r)),0,0;... besselj(n,u*r1), bessely(n,u*r1), 0,0;... ((eta*omega*e0)/beta1)*ne2^2*besselj(n,u2*r1), ((eta*omega*e0)/beta1)*ne2^2*bessely(n,u2*r1), 0,0];
  1 件のコメント
Geoff Hayes
Geoff Hayes 2014 年 10 月 28 日
Ritesh - please format the above code so that it is readable. Highlight the code portion and press the {} Code button.
As well, to make it easier to debug, break apart your one line of code into separate statements so that it may be easier to determine which matrix addition is causing the problem. You may also want to include the values for each of the variables that you are using - what is beta1, eta2, etc.?
Formatting the above, breaking down your code into multiple statements, and providing more information will go a long way to getting some help for your problem.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by