Advertisement
Guest User

tinyxml2_wrap n-structs

a guest
Feb 11th, 2015
677
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.25 KB | None | 0 0
  1. X = struct('xxx', 0, 'yyy', 0);
  2.  
  3. for i = 1:100
  4.     for j = 1:100
  5.         X(i, j) = struct('xxx', 100*i+j, 'yyy', sin(i)+cos(j));
  6.     end
  7. end
  8.  
  9. tinyxml2_wrap('save', 'test_save_nstructs.xml', X);
  10. Y = tinyxml2_wrap('load', 'test_save_nstructs.xml');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement