Subscripted assignment dimension mismatch.

1 回表示 (過去 30 日間)
Tahir
Tahir 2014 年 5 月 24 日
回答済み: Star Strider 2014 年 5 月 24 日
i use two loops ....for calculating the average of values..and saving in a matrix..but i got this error..please help.
avg_x=zeros(rows_F,1)
avg_y=zeros(rows_F,1);
divider=n./2;
avg_x(k,1)=xSum ./ divider; Error is here Subscripted assignment dimension mismatch.
avg_y(k,1)=ySum ./ divider; Error is here Subscripted assignment dimension mismatch.

回答 (1 件)

Star Strider
Star Strider 2014 年 5 月 24 日
I suspect that either xSum or divider is a vector.

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by