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

5 views (last 30 days)
for sheetno=1:3
dn1='net' ;
net=[dn1 dn2];
Walter Roberson
Walter Roberson on 20 Dec 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

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 20 Dec 2016
In your situation I would save the values inside a structure using dynamic field names. Then save() the structure using the -struct option.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!