Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
for sheetno=1:3
dn1='net' ;
dn2=num2str(sheetno);
net=[dn1 dn2];
net=fitnet(10);
end
  3 comentarios
Dhandapani.S
Dhandapani.S el 18 de Dic. de 2016
Is there any variable declaration like static which can be made non-static later in the program?
Walter Roberson
Walter Roberson el 20 de Dic. de 2016
"Is there any variable declaration like static which can be made non-static later in the program?"
No. The only variable declarations are global and persistent

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 20 de Dic. de 2016
In your situation I would save the values inside a structure using dynamic field names. Then save() the structure using the -struct option.
  7 comentarios
Walter Roberson
Walter Roberson el 27 de Abr. de 2017
inpsam=input('input sample number','s');
openn=strcat('net',inpsam);
filedata = load('mynets',openn);
saved_net = filedata.(openn);
output = saved_net(featureset1');

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by