Preallocating array error problem

 采纳的回答

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 个评论

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

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by