Skip to content

Commit

Permalink
output data depends on nargout
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Aug 12, 2022
1 parent c729048 commit 283e5f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion savebj.m
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@
end
fwrite(fid,json);
fclose(fid);
else
end
if(nargout>0)
output=json;
end

Expand Down
4 changes: 3 additions & 1 deletion savejson.m
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@
fwrite(fid,json,'char');
end
fclose(fid);
else
end

if(nargout>0)
output=json;
end

Expand Down

0 comments on commit 283e5f1

Please sign in to comment.