source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/dev/tests-mbg/sdpvar/sdpvar_power.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 229 bytes |
Line | |
---|---|
1 | function sdpvar_replace |
2 | |
3 | % Bugs reported from Didier Henrion |
4 | x = sdpvar(1); |
5 | y = ([1 1 1]*x).^(0:2); |
6 | mbg_assertequal(getbase(y), getbase([1 x x^2])); |
7 | |
8 | x = sdpvar(1); |
9 | y = x.^(0:2); |
10 | mbg_assertequal(getbase(y), getbase([1 x x^2])); |
11 |
Note: See TracBrowser
for help on using the repository browser.