フィルターのクリア

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

4 ビュー (過去 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');
Dhandapani.S
Dhandapani.S 2017 年 4 月 27 日
Thank You very much Walter.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by