File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- function status = check_field_content(struct_1 , struct_2 )
1+ function status = check_field_content(struct_one , struct_two )
22 %
33 % (C) Copyright 2021 spm_2_bids developers
44
55 status = true ;
66
7- if isempty(struct_2 )
7+ if isempty(struct_two )
88 return
99 end
1010
11- if strcmp(struct_2 , ' *' )
11+ if strcmp(struct_two , ' *' )
1212 return
1313 end
1414
15- shared_fields = intersect(fieldnames(struct_1 ), fieldnames(struct_2 ));
15+ shared_fields = intersect(fieldnames(struct_one ), fieldnames(struct_two ));
1616
1717 if isempty(shared_fields )
1818 status = false ;
1919 return
2020 end
2121
2222 for i = 1 : numel(shared_fields )
23- if ~strcmp(struct_1 .(shared_fields{i }), struct_2 .(shared_fields{i }))
23+ if ~strcmp(struct_one .(shared_fields{i }), struct_two .(shared_fields{i }))
2424 status = false ;
2525 return
2626 end
You can’t perform that action at this time.
0 commit comments