source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/test_mutable.m
@
177
Last change on this file since 177 was 37, checked in by , 15 years ago | |
---|---|
File size: 153 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | x = mutable; |
2 | x(1) = 5; | |
3 | y = x; | |
4 | x(1) = 4; | |
5 | assert(y(1) == 4); | |
6 | ||
7 | x = mutable(struct); | |
8 | y = x; | |
9 | x.a = 4; | |
10 | assert(y.a == 4); | |
11 | fprintf('Test passed.\n'); |
Note: See TracBrowser
for help on using the repository browser.