We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02ecbfa commit 9542ecaCopy full SHA for 9542eca
matlab/updatejsonpetfile.m
@@ -454,8 +454,13 @@
454
for f = 1:length(shouldBarray)
455
if isfield(filemetadata,shouldBarray{f})
456
if isscalar(filemetadata.(shouldBarray{f}))
457
- filemetadata.(shouldBarray{f}) = {filemetadata.(shouldBarray{f})};
458
- updated = 1;
+ if ~iscell(filemetadata.(shouldBarray{f}))
+ filemetadata.(shouldBarray{f}) = {filemetadata.(shouldBarray{f})};
459
+ updated = 1;
460
+ elseif isnumeric(filemetadata.(shouldBarray{f}){1})
461
462
463
+ end
464
elseif all(size(filemetadata.(shouldBarray{f})) == 1)
465
if any(contains(filemetadata.(shouldBarray{f}),{'none'}))
466
filemetadata.(shouldBarray{f}) = {filemetadata.(shouldBarray{f})};
0 commit comments