MATLAB: Programming in Matlab. i need net1, net2 and net3 constructed. but i have only net replaced 3 times. the variable net might be unused is the warning. please help

programming in matlab

for sheetno=1:3
dn1='net' ;
dn2=num2str(sheetno);
net=[dn1 dn2];
net=fitnet(10);
end

Best Answer

In your situation I would save the values inside a structure using dynamic field names. Then save() the structure using the -struct option.