source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/dev/tests-mbg/sos/test_sos_matrix_2.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 235 bytes
Line 
1function massive
2
3sdpvar x1 x2
4P = [1+x1^2 -x1+x2+x1^2;-x1+x2+x1^2 2*x1^2-2*x1*x2+x2^2];
5[sol,v,Q] = solvesos(set(sos(P)));
6
7diff = clean(v{1}'*Q{1}*v{1}-P,1e-8);
8
9mbg_asserttolequal(sol.problem,0);
10mbg_asserttolequal(diff,[0 0;0 0]);
Note: See TracBrowser for help on using the repository browser.