matlab写json
matlab写json
function GDecoder(data,outputpath)
ddd = data.data;
if size(ddd,1) == 1
r = savejson('G',data);
else
data.data = char(ddd);
r = savejson('G',data);
end
fileID = fopen([outputpath '/G.json'],'w');
fprintf(fileID,r);
fclose(fileID);