Subscript indices must either be real positive integers or logicals .. ERROR
1 回表示 (過去 30 日間)
古いコメントを表示
Fatima Al Marzoqi
2014 年 7 月 9 日
コメント済み: Fatima Al Marzoqi
2014 年 7 月 9 日
This is a part of my code, when I run it .. I got this message
- *{ Subscript indices must either be real positive integers or logicals.
Error in proj (line 131)
inv=inv(D+aL);
}* *
what is the problem?
D=diag(diag®); %Diagnoal
L=tril(R,-1); %Lower-Triangular matrix
U=triu(R,1); %Upper-Triangular matrix
aL=a*L; %Relaxation Factor with lower-traingular matrix
inv=inv(D+aL);
prak=(((1-a)*D)-(a*U));
B=inv*prak;
c=(a*inv)*V;
cur=I;
condition3=1;
k2=0;
採用された回答
Azzi Abdelmalek
2014 年 7 月 9 日
Your function inv is erased by the variable inv
inv=inv(D+aL)
change it to
inv1=inv(D+al)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!