diff --git a/setConfig.m b/setConfig.m new file mode 100644 index 0000000..8bb2cfa --- /dev/null +++ b/setConfig.m @@ -0,0 +1,8 @@ +function setConfig(variable, value) + currentConfig = getConfig(); + currentConfig.(variable) = value; + + fid = fopen('config.json','w'); + fprintf(fid, replace(jsonencode(currentConfig), ",", ",\n")); + fclose(fid); +end \ No newline at end of file