{"id":313,"date":"2010-02-01T13:13:37","date_gmt":"2010-02-01T13:13:37","guid":{"rendered":"https:\/\/blogs.mathworks.com\/steve\/2010\/02\/01\/updates-on-old-business-upslope-area-and-unit-testing\/"},"modified":"2017-07-10T07:09:25","modified_gmt":"2017-07-10T11:09:25","slug":"updates-on-old-business-upslope-area-and-unit-testing","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/steve\/2010\/02\/01\/updates-on-old-business-upslope-area-and-unit-testing\/","title":{"rendered":"Updates on old business: upslope area and unit testing"},"content":{"rendered":"<p>\r\nA couple of papers have been published recently that are related to some of my old blog topics.\r\n<\/p>\r\n\r\n<p>\r\nAlmost exactly a year ago I posted an xUnit-based unit test harness for MATLAB to the MATLAB Central File Exchange, and I blogged about it <a href=\"https:\/\/blogs.mathworks.com\/steve\/2009\/02\/03\/mtest-a-unit-test-harness-for-matlab-code\/\">here<\/a>.\r\n<\/p>\r\n\r\n<p>\r\nLater in the year I wrote an article about it for <a title=\"http:\/\/cise.aip.org\/ (link no longer works)\"><em>Computing in Science and Engineering<\/em><\/a>, a joint publication of the <a href=\"http:\/\/www.computer.org\/\">IEEE Computer Society<\/a> and the <a href=\"http:\/\/www.aip.org\/\">American Institute of Physics<\/a>. The article, <a href=\"https:\/\/blogs.mathworks.com\/images\/steve\/2010\/Automated%20Software%20Testing%20for%20MATLAB%20(2009).pdf\">\"Automated Software Testing for MATLAB,\"<\/a> appears in the November 2009 issue.\r\n<\/p>\r\n\r\n<p>\r\nIn 2007 I did a series of blog post on developing MATLAB algorithms for a topological measurement called upslope area, a measurement related to digital elevation models (DEMs). The upslope area of a point (pixel) is the total area on the terrain above that point that drains through it. I formulated the computation of upslope area as a sparse linear system, which let me put the MATLAB <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/mldivide.html\">backslash operator<\/a> to good use, and I put my <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/15818-upslope-area-functions\">upslope area functions<\/a> on the File Exchange.\r\n<\/p>\r\n\r\n<p>\r\nAt about the same time, File Exchange contributor <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/25218\">Wolfgang Schwanghart<\/a> was developing a similar approach. His paper (with Nikolaus Kuhn), <a href=\"http:\/\/dx.doi.org\/10.1016\/j.envsoft.2009.12.002\">\"TopoToolbox: A set of Matlab functions for topographic analysis,\"<\/a> is in the January 2010 issue of <a href=\"http:\/\/www.elsevier.com\/locate\/envsoft\"><em>Environmental Modelling & Software<\/em><\/a>.\r\n<\/p>","protected":false},"excerpt":{"rendered":"<p>\r\nA couple of papers have been published recently that are related to some of my old blog topics.\r\n\r\n\r\n\r\nAlmost exactly a year ago I posted an xUnit-based unit test harness for MATLAB to the MATLAB... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/steve\/2010\/02\/01\/updates-on-old-business-upslope-area-and-unit-testing\/\">read more >><\/a><\/p>","protected":false},"author":42,"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\/steve\/wp-json\/wp\/v2\/posts\/313"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/comments?post=313"}],"version-history":[{"count":4,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/313\/revisions"}],"predecessor-version":[{"id":2652,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/313\/revisions\/2652"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/media?parent=313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/categories?post=313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/tags?post=313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}