フィルターのクリア

Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-3.

178 ビュー (過去 30 日間)
Hi part of mi code is shown below:
for I = 1:10+1
w2(i,1)= w2(i,1)+n.*delta2.*Y1(i)
end
i am getting the error as mentioned in the title, can someone please help me
  4 件のコメント
Adam
Adam 2018 年 10 月 25 日
Debug your code. It is one of those error messages that is completely self-explanatory!
Stephen23
Stephen23 2018 年 10 月 25 日
編集済み: Stephen23 2018 年 10 月 25 日
It comes down to this:
w2(i,1)+n.*delta2.*Y1(i)
w2(i,1) refers to a sclar, as does Y1(i). So one (or both) of n and delta2 must be non-scalar. Check the sizes of your variables.

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

回答 (1 件)

madhan ravi
madhan ravi 2018 年 10 月 25 日
編集済み: madhan ravi 2018 年 10 月 25 日
for i = 1:10+1
w2(i,:)= w2(i,1)+n.*delta2.*Y1(i)
end
  7 件のコメント
Valerie Cala
Valerie Cala 2018 年 10 月 26 日
thank you so much for your time, it was very clear, my code is working now :)
madhan ravi
madhan ravi 2018 年 10 月 26 日
編集済み: madhan ravi 2018 年 10 月 26 日
Anytime , make sure to accept the answer if it worked so that other people know the question is solved else let know whats additionally required

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

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by