Error Assignment has more non-singleton rhs dimensions than non-singleton subscripts

6 ビュー (過去 30 日間)
Simone
Simone 2014 年 9 月 24 日
コメント済み: Simone 2014 年 9 月 24 日
Hello there, I'm a Matlab newbie. I'm getting this error when running a function
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
Error in AQDATABT (line 251)
mpc.branch(idr,3)=(Rphase(ind)*LUNG(i))/1000;
and I can't understand where's the error.
Rphase(ind) is 1.9 and LUNG(i) is 9.
Thanks for help
  4 件のコメント
Simone
Simone 2014 年 9 月 24 日
size( mpc.branch(idr,3) )
returs 1 1
size( Rphase(ind)*LUNG(i) )
instead 2 1
This is pretty strange because Rphase is a 246x1 array and LUNG is a 50x1 array.
Simone
Simone 2014 年 9 月 24 日
Solved! ind is actually 2x1

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by