error using / matrix dimensions must agree

조회 수: 4 (최근 30일)
DEBASHIS PANDA
DEBASHIS PANDA 2016년 4월 21일
편집: Walter Roberson 2016년 4월 21일
Hello,
while running my programme i am getting an error message of error using / matrix dimension in following code.
After changing / to ./ form it is giving error message A(I)=B dimension of A and B must agree.
if i==n_oriff
if P(i-1,j)>=P(i,j)
b(i)=.3*.25*sqrt( 2*Cpf(i)/R*P(i-1,j)*P(i-1,j)/R/T(i-1,j)*((P(i,j)/P(i-1,j))^(2-2*R/Cpf(i))-(P(i,j)/P(i-1,j))^(2-R/Cpf(i))))+0.1*mdotn(i-1,j);
else
%b(i)=.3;
b(i)=-.3*.25*sqrt(2*Cpf(i)/R*P(i,j)*P(i,j)/R/T(i,j)*((P(i-1,j)/P(i,j))^(2-2*R/Cpf(i))-(P(i-1,j)/P(i,j))^(2-R/Cpf(i))))+0.1*mdotn(i-1,j);
end
end
please anyone help me...
thanks in advance.....
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 4월 21일
편집: Walter Roberson 2016년 4월 21일
We need to know size(i), size(j), size( R)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by