{"id":212,"date":"2008-05-05T07:20:11","date_gmt":"2008-05-05T12:20:11","guid":{"rendered":"https:\/\/blogs.mathworks.com\/desktop\/2008\/05\/05\/file-and-folder-comparison-tool-update-in-r2008a\/"},"modified":"2008-05-05T07:20:11","modified_gmt":"2008-05-05T12:20:11","slug":"file-and-folder-comparison-tool-update-in-r2008a","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/community\/2008\/05\/05\/file-and-folder-comparison-tool-update-in-r2008a\/","title":{"rendered":"File and Folder Comparison Tool Update in R2008a"},"content":{"rendered":"<p><i><br \/>\nI&#8217;d like to welcome guest blogger Malcolm Wood from the Simulink Model Management team. Malcolm will occasionally be blogging here on the <a href=\"https:\/\/blogs.mathworks.com\/community\/\">Inside the MATLAB Desktop<\/a> blog.<br \/>\n<\/i><\/p>\n<p>\nFor many years the MATLAB Desktop has included a simple tool for comparing text files.  You may have used it from the MATLAB Editor to see the changes you have made to your M-file since you last saved it, or you may have used it from the Directory Browser to compare two files on disk.\n<\/p>\n<p>\nIn R2008a we extended the capabilities of this tool to compare files which aren\u2019t just plain text.  You can now use it to compare the variables in MAT-files.  It will tell you the names of the variables which are in each file, and for the variables which appear in both files it will tell you whether their values are the same or not:\n<\/p>\n<div align=\"center\">\n<img decoding=\"async\" border=\"0\" align=\"center\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/desktop\/malcolm_file_and_folder_comparison_tool_update_in_r2008a\/file_comparison.png\"\/>\n<\/div>\n<p><\/p>\n<p>\nAnd if you want to see exactly what\u2019s different about these two variables called \u201cX\u201d, then clicking on either one will open it in the Variable Editor so that you can take a closer look.\n<\/p>\n<p>\nFor other types of binary file, the MATLAB will scan the two files and simply tell you whether their contents are the same or not.\n<\/p>\n<p>\nYou might have noticed from the screenshot above that the title is \u201cFile <b>and Directory Comparisons<\/b>\u201d, namely because another new feature is the ability to compare entire directories.  We think this sort of thing is useful for cases where you\u2019ve taken a copy of some files and made some changes to get them to work for you.  By comparing the two directories you can quickly review all the changes you made without leaving MATLAB.\n<\/p>\n<p>\nThis tool is available from the Directory Browser: just right-click on a directory and choose \u201cCompare Against\u2026\u201d.\n<\/p>\n<p>\nIf the two directories you compare contain files of the same name, MATLAB will scan those files to determine whether their contents are the same or not.  If they\u2019re not, you\u2019ll see a hyperlink to compare the files in detail.\n<\/p>\n<p>\nIf there are sub-directories with the same name but different time-stamps, there will be a hyperlink to let you compare the contents of those too.\n<\/p>\n<div align=\"center\">\n<img decoding=\"async\" border=\"0\" align=\"center\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/desktop\/malcolm_file_and_folder_comparison_tool_update_in_r2008a\/folder_comparison.png\"\/>\n<\/div>\n<p><\/p>\n<p>\nWe hope you\u2019ll find these new features useful.  And if there are changes you think we should make, leave us a comment to let us know!\n<\/p>\n<p><i><br \/>\n-by Malcolm Wood, The MathWorks<br \/>\n<\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\nI&#8217;d like to welcome guest blogger Malcolm Wood from the Simulink Model Management team. Malcolm will occasionally be blogging here on the Inside the MATLAB Desktop blog.<\/p>\n<p>For many years the&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/community\/2008\/05\/05\/file-and-folder-comparison-tool-update-in-r2008a\/\">read more >><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,9],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/212"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/212\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/categories?post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/tags?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}