필터 지우기
필터 지우기

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 (최근 30일)
for sheetno=1:3
dn1='net' ;
dn2=num2str(sheetno);
net=[dn1 dn2];
net=fitnet(10);
end
  댓글 수: 3
Dhandapani.S
Dhandapani.S 2016년 12월 18일
Is there any variable declaration like static which can be made non-static later in the program?
Walter Roberson
Walter Roberson 2016년 12월 20일
"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

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2016년 12월 20일
In your situation I would save the values inside a structure using dynamic field names. Then save() the structure using the -struct option.
  댓글 수: 7
Walter Roberson
Walter Roberson 2017년 4월 27일
inpsam=input('input sample number','s');
openn=strcat('net',inpsam);
filedata = load('mynets',openn);
saved_net = filedata.(openn);
output = saved_net(featureset1');

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by