{"id":66,"date":"2004-02-04T17:23:42","date_gmt":"2004-02-04T22:23:42","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=66"},"modified":"2004-02-04T17:23:42","modified_gmt":"2004-02-04T22:23:42","slug":"clear-all-but-specified-variables","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2004\/02\/04\/clear-all-but-specified-variables\/","title":{"rendered":"Clear all but specified variables"},"content":{"rendered":"<a title=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/loadFile.do?objectId=181&amp;objectType=file (link no longer works)\">KEEP<\/a> can be thought of as the complement to CLEAR.  KEEP clears all variables from the workspace except for those specified.  I find KEEP to be one of those functions I use so much that I forget it isn't part of MATLAB.","protected":false},"excerpt":{"rendered":"<p>KEEP can be thought of as the complement to CLEAR.  KEEP clears all variables from the workspace except for those specified.  I find KEEP to be one of those functions I use so much that I forget it... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2004\/02\/04\/clear-all-but-specified-variables\/\">read more >><\/a><\/p>","protected":false},"author":68,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/66"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}