{"id":2113,"date":"2008-02-26T09:39:17","date_gmt":"2008-02-26T14:39:17","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2008\/02\/26\/matlab-basics-getting-a-directory-listing\/"},"modified":"2016-05-10T15:06:00","modified_gmt":"2016-05-10T19:06:00","slug":"matlab-basics-getting-a-directory-listing","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2008\/02\/26\/matlab-basics-getting-a-directory-listing\/","title":{"rendered":"MATLAB Basics: Getting a directory listing"},"content":{"rendered":"<p>In the past we covered how to use UIGETFILE as an alternative to hardcoding the name of a file in your program. <a href=\"https:\/\/blogs.mathworks.com\/pick\/2007\/09\/27\/matlab-basics-video-uigetfile-for-selecting-a-file-in-a-script-function-or-gui\/\">[click here]<\/a> In this video, we will show how MATLAB can get a directory listing and use it to batch process the files in a directory.<\/p>\n<p><embed src=\"https:\/\/blogs.mathworks.com\/images\/pick\/\/FlashVideos\/FlowPlayer.swf?config=%7Bembedded%3Atrue%2CplayList%3A%5B%7BsuggestedClipsInfoUrl%3A%2777%20see%20also%2Etxt%27%2Curl%3A%2777%20Basics%20directory%20listing%2Eflv%27%7D%5D%2CbaseURL%3A%27http%3A%2F%2Fblogs%2Emathworks%2Ecom%2Fimages%2Fpick%2FFlashVideos%2F%27%2CsplashImageFile%3A%2777%20Basics%20directory%20listing%2Ejpg%27%2Cloop%3Afalse%2CinitialScale%3A%27fit%27%2CshowFullScreenButton%3Afalse%2CautoBuffering%3Afalse%2CmenuItems%3A%5Bfalse%2Cfalse%2Cfalse%2Cfalse%2Cfalse%2Ctrue%5D%2CautoPlay%3Afalse%7D\" type=\"application\/x-shockwave-flash\" width=\"500\" height=\"400\"><\/embed> Video Content<\/p>\n<p><a href=\"https:\/\/blogs.mathworks.com\/pick\/lazyweb-open-challenges\/\"><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/pick\/..\/images\/pick\/Lazy.jpg\" alt=\"lazy.jpg\" \/><br \/>\n<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the past we covered how to use UIGETFILE as an alternative to hardcoding the name of a file in your program. [click here] In this video, we will show how MATLAB can get a directory listing and use&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2008\/02\/26\/matlab-basics-getting-a-directory-listing\/\">read more >><\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,8,2],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2113"}],"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=2113"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2113\/revisions"}],"predecessor-version":[{"id":7088,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2113\/revisions\/7088"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}