{"id":521,"date":"2009-04-29T01:42:46","date_gmt":"2009-04-29T08:42:46","guid":{"rendered":"http:\/\/prefrontal.org\/blog\/?p=521"},"modified":"2026-03-06T13:28:34","modified_gmt":"2026-03-06T20:28:34","slug":"matlab-finite-function-warnings","status":"publish","type":"post","link":"https:\/\/prefrontal.org\/blog\/2009\/04\/matlab-finite-function-warnings\/","title":{"rendered":"Matlab finite() function warnings"},"content":{"rendered":"<p>The latest version of Matlab deprecated the finite() function in favor of isfinite().  This is all fine and dandy in terms of improving the scripting language, but this change currently causes a crapalanche of warnings to be thrown as you use SPM.  Usually along the lines of:<\/p>\n<p><code>Warning: FINITE is obsolete and will be removed in future versions. Use ISFINITE instead.<\/code><\/p>\n<p>Here is the line of code to turn those warnings off:<\/p>\n<p><code>warning off MATLAB:FINITE:obsoleteFunction<\/code><\/p>\n<p>Peace, serenity, and a clean terminal window to you my neuroimaging friend.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The latest version of Matlab deprecated the finite() function in favor of isfinite(). This is all fine and dandy in terms of improving the scripting language, but this change currently causes a crapalanche of warnings to be thrown as you use SPM. Usually along the lines of: Warning: FINITE is obsolete and will be removed [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,10,11],"tags":[],"class_list":["post-521","post","type-post","status-publish","format-standard","hentry","category-miscellany","category-mri","category-statistics"],"_links":{"self":[{"href":"https:\/\/prefrontal.org\/blog\/wp-json\/wp\/v2\/posts\/521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prefrontal.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prefrontal.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prefrontal.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/prefrontal.org\/blog\/wp-json\/wp\/v2\/comments?post=521"}],"version-history":[{"count":5,"href":"https:\/\/prefrontal.org\/blog\/wp-json\/wp\/v2\/posts\/521\/revisions"}],"predecessor-version":[{"id":1536,"href":"https:\/\/prefrontal.org\/blog\/wp-json\/wp\/v2\/posts\/521\/revisions\/1536"}],"wp:attachment":[{"href":"https:\/\/prefrontal.org\/blog\/wp-json\/wp\/v2\/media?parent=521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prefrontal.org\/blog\/wp-json\/wp\/v2\/categories?post=521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prefrontal.org\/blog\/wp-json\/wp\/v2\/tags?post=521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}