Now,I know why!
In matlab,'traingd' indicates the batch GD method. From above codes,net1 is the batch algorithm,while net2 is the equivalent GD algorithm.
So the difference is right.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!