{"id":1840,"date":"2006-02-16T17:25:09","date_gmt":"2006-02-16T22:25:09","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=1840"},"modified":"2016-05-10T14:29:57","modified_gmt":"2016-05-10T18:29:57","slug":"apply-a-function-to-files","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2006\/02\/16\/apply-a-function-to-files\/","title":{"rendered":"Apply a function to files"},"content":{"rendered":"<p>Thanks again to John D&#8217;Errico for giving Scott an extended break &#8230;<\/p>\n<blockquote><p>Following the advent of a more sophisticated cellfun in the newest matlab release, we now have <a title=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/loadFile.do?objectId=9723&amp;objectType=file (link no longer works)\">FILEFUN<\/a>, by Jerker Wagberg. Filefun allows you to apply any function to many files. Do you wish to simply collect the help for every function in a toolbox? Compute the average RGB values for each jpeg image in a directory tree? Perhaps you just wish to run a list of matlab scripts. Each of these tasks are now just a few keystrokes away.<\/p>\n<p>I only wish I had not tested to see if &#8216;delete&#8217; could be applied to all the files under matlabroot. Where did I put that backup?<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Thanks again to John D&#8217;Errico for giving Scott an extended break &#8230;<br \/>\nFollowing the advent of a more sophisticated cellfun in the newest matlab release, we now have FILEFUN, by Jerker&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2006\/02\/16\/apply-a-function-to-files\/\">read more >><\/a><\/p>\n","protected":false},"author":33,"featured_media":0,"comment_status":"open","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\/1840"}],"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\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=1840"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/1840\/revisions"}],"predecessor-version":[{"id":7029,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/1840\/revisions\/7029"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=1840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=1840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=1840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}