Accepted Answer

You need to initialize the variable before the loop. Initialize using:
error_history = zeros([],1) ;
Note: Don't show your code as an image snippet.....you should copy paste it here.

2 Comments

Got the error fixed. Many thanks.
It is not an error... it is a warning.

Sign in to comment.

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Asked:

on 10 May 2021

Commented:

on 10 May 2021

Community Treasure Hunt

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

Start Hunting!