Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for loop = 1:2
- for xmouse = 1:3
- clearvars mystruct
- mystruct.name = 'dream';
- mystruct.var = 112;
- if loop == 2
- mystruct(2).name = 'seizmore';
- mystruct(2).var = 1200;
- end
- if xmouse == 1 && loop == 1
- mytable = struct2table(mystruct);
- else
- table2append = struct2table(mystruct);
- mytable = [mytable; table2append];
- end
- end
- mytable.name
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement