Matlab error. error when use load to try to add "data" to the static workspace.

created at 11-22-2021 views: 1

Solution

It turns out that the load statement under function Ga is

load('data.mat');

After modification

load('data.mat','data');

That is to assign it to a static variable, the problem is solved.

created at:11-22-2021
edited at: 11-22-2021: