Mike on the MATLAB Desktop

July 18th, 2011

More Comparison Tool Updates

Two weeks ago, I wrote about the new MAT-file comparison features in the Comparison Tool. However, those were not the only enhancements made to the tool in R2011a. You can also now ignore certain files and directories in the folder comparisons, and show only the differences in text files.

Filter Results in Folder Comparisons

Using the filter button () in the toolbar, you can create a list of files/folders to ignore. This is useful for ignoring source-control artifacts such as a CVS/ or .git/ directory, backup files, or extended attribute “._“-type files. Using filters saves time because it does not search into ignored sub-folders.

Showing Differences Only in Text Comparisons

When you compare long text files, using the () button, you hide long sections of equal lines. This makes it easier to find and read the differences. It does still show a few lines above and below the differences in order to preserve the context.

Hiding lines in a text file compare

One Response to “More Comparison Tool Updates”

  1. Aurélien replied on :

    As I wrote in my blog 5 months ago
    http://blog.developpez.com/matlab4geek/c2794/r2011a/comparer-des-dossiers-avec-un-filtre/
    it is one my favorite 11a feature!!

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks
Mike works on the MATLAB Desktop team.

These postings are the author's and don't necessarily represent the opinions of The MathWorks.