rename a network in a loop?

2 Ansichten (letzte 30 Tage)
Nico336
Nico336 am 18 Mai 2019
Kommentiert: Walter Roberson am 18 Mai 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?

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by