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.
95 views (last 30 days)
Show older comments
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 Comments
Adam
on 25 Oct 2018
Debug your code. It is one of those error messages that is completely self-explanatory!
Answers (1)
madhan ravi
on 25 Oct 2018
Edited: madhan ravi
on 25 Oct 2018
for i = 1:10+1
w2(i,:)= w2(i,1)+n.*delta2.*Y1(i)
end
7 Comments
madhan ravi
on 26 Oct 2018
Edited: madhan ravi
on 26 Oct 2018
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
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!