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?

Answers (1)

net1 = net;

1 Comment

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

Sign in to comment.

Categories

Asked:

on 16 Jul 2012

Community Treasure Hunt

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

Start Hunting!