How to rename a network object from command prompt

I have a network object called 'net' that I want to rename to 'net1'.
So I've tried numerous variations on:
rename(net,'net','net1')
rename(net, 'net1')
etc
and I keep getting the error "Undefined function or method 'rename' for input arguments of type 'network'."
So if I'm not supposed to use 'rename' to change the name of a 'network' object, how do I accomplish my goal?

Réponses (1)

Greg Heath
Greg Heath le 17 Juil 2012

0 votes

net1 = net;

1 commentaire

Followed by
clear net;
since it is a rename that is desired rather than a copy.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Get Started with Deep Learning Toolbox dans Centre d'aide et File Exchange

Question posée :

le 16 Juil 2012

Community Treasure Hunt

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

Start Hunting!

Translated by