View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

5.0 | 3 ratings Rate this file 0 Downloads (last 30 days) File Size: 41.5 KB File ID: #36539 Version: 1.0



Ian Noell (view profile)


Check and fix case of function calls

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information

In releases of MATLAB prior to R2011b, entering a function name that did not match any known function name in the given letter case resulted in a warning. After displaying this warning message, MATLAB attempted find a function that would match if letter case were ignored. If such a match were found, MATLAB ran this function instead. In MATLAB R2011b, the MATLAB software generates an error if it can't find an exact-case match.

fixcase attempts to find and offer fixes for function calls with incorrect case by analyzing MATLAB code and checking the MATLAB path. fixcase produces an HTML report. The report provides a summary of issues with links to open and fix the code in the MATLAB editor. You must verify each change because fixcase might produce some inappropriate messages and fixes when MATLAB uses variables in unusual ways. Similarly, fixcase might not correctly analyze method calls.

Required Products MATLAB
MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
31 Mar 2016 Ian Noell

Ian Noell (view profile)

fixcase tries to create a backup zip in the current folder when applying a batch fix. This should work as long as you have permission to write to that directory. As running MATLAB as administrator fixed the issue for Ben, I would suggest that the current folder was under matlabroot.

Comment only
21 Mar 2016 BenK-G

BenK-G (view profile)

For anyone who had the same error as me, simply run MATLAB as an administrator

Comment only
21 Mar 2016 BenK-G

BenK-G (view profile)

I'm getting the following error when trying to fix my code

Error using zip (line 55)
Could not open "Bad Function" for writing.

Any ideas on how to fix this anybody?

Comment only
03 Apr 2013 Paul Kassebaum  
05 Mar 2013 Aurelien Queffurust

Just a drawback all codes are p-coded.
We cannot choose for example the destination of HTML reports , they go by default under temporary folder/CodeReports

Comment only
05 Dec 2012 Patrick Lanusse

Very useful. Thanks a lot.

02 Jul 2012 Aurelien Queffurust

Thanks a lot for sharing this code. It helped to quickly detect 150 potential errors from more than 1000 M-files !

Contact us