Advertisement
Guest User

matlab table example

a guest
Apr 7th, 2020
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.33 KB | None | 0 0
  1. for xmouse = 1:3
  2.     clearvars mystruct
  3.     mystruct.name = 'dream';
  4.     mystruct.var = 112;
  5.    
  6.     if xmouse == 1
  7.         T = struct2table(mystruct);
  8.     else
  9.         if false
  10.             mystruct(2).name = 'seizmore';
  11.             mystruct(2).var = 1200;
  12.         end
  13.         T = [T; struct2table(mystruct)];
  14.     end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement