Skip to content

Commit 283e5f1

Browse files
committed
output data depends on nargout
1 parent c729048 commit 283e5f1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

savebj.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@
294294
end
295295
fwrite(fid,json);
296296
fclose(fid);
297-
else
297+
end
298+
if(nargout>0)
298299
output=json;
299300
end
300301

savejson.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,9 @@
270270
fwrite(fid,json,'char');
271271
end
272272
fclose(fid);
273-
else
273+
end
274+
275+
if(nargout>0)
274276
output=json;
275277
end
276278

0 commit comments

Comments
 (0)