MATLAB Answers

Nico336
0

rename a network in a loop?

Asked by Nico336
on 18 May 2019 at 5:40
Latest activity Commented on by Walter Roberson
on 18 May 2019 at 9:14
for num = 1:50
load( fullfile('D:\Checkpoint_AlexNet',MyFolderInfo(num).name));
[~,name,~] = fileparts(MyFolderInfo(num).name);
eval(['net_',name,'=',net,';']);
clear('net');
end
I want to load a Checkpoint of AlexNet, which contains SeriesNetwork variable named net,
and rename the net variable according to the loop. But the code above is wrong.
Could anyone help?

0 Answers