Last change
on this file since 37 was
37,
checked in by (none), 14 years ago
|
Added original make3d
|
-
Property svn:executable set to
*
|
File size:
409 bytes
|
Rev | Line | |
---|
[37] | 1 | function v = immutable(mut)
|
---|
| 2 | %IMMUTABLE Convert to an ordinary (immutable) object.
|
---|
| 3 | % immutable(v) returns an immutable copy of the mutable object v, i.e.
|
---|
| 4 | % converts v into an ordinary Matlab value.
|
---|
| 5 | %
|
---|
| 6 | % Examples:
|
---|
| 7 | % x = mutable([1 2 3]);
|
---|
| 8 | % sum(x) % fails
|
---|
| 9 | % sum(immutable(x)) % returns 6
|
---|
| 10 |
|
---|
| 11 | % Written by Tom Minka
|
---|
| 12 | % (c) Microsoft Corporation. All rights reserved.
|
---|
| 13 |
|
---|
| 14 | v = fromJava(mut.obj);
|
---|
Note: See
TracBrowser
for help on using the repository browser.