MATLAB Answers

rename a network in a loop?

6 views (last 30 days)
Nico336
Nico336 on 18 May 2019
Commented: Walter Roberson on 18 May 2019
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?

Answers (0)