3.83333

3.8 | 12 ratings Rate this file 122 downloads (last 30 days) File Size: 9 KB File ID: #7946

M-file Code Formatting Tool

by Pascal Getreuer

 

29 Jun 2005 (Updated 02 Nov 2005)

Code covered by BSD License  

Format code flow control, change operator spacing, strip comments, and more.

Editor's Notes:

This file was a File Exchange Pick of the Week

Download Now | Watch this File

File Information
Description

CodeWash is a graphical interface tool for formatting M-file code. Formatting options include flow control indentation, spacing around operators, and removing comments. For basic usage, click the help button in CodeWash.

MATLAB release MATLAB 5.3 (R11)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (13)
22 Jul 2005 Steve Hoelzer

Really nice! Lots of options and fast. I can't wait to use this during the next MATLAB contest.

06 Oct 2005 Alberto Zin

Hi Pascal, good tool.
Only be careful in using the spacing "+"
and "-" option:
if your code has constants like 1.e+5 spacing it results in 1.e + 5 which will be unreadable by the interpreter.
Anyway, thanks so much for it.

08 Oct 2005 Bhaba palaniappan

Fantastic tool

09 Oct 2005 santhosh thota

very good

10 Oct 2005 ammar fadhel  
10 Oct 2005 no need

What's wrong with doing it right the first time!?!

11 Oct 2005 manish prasad

please available yhe free version of MATLAB8 version for poor student and also its diffrent features.Please send reply as possible as.

12 Oct 2005 jyoti arya  
12 Oct 2005 ali shams  
13 Oct 2005 mariuluci pinheiro

   Olá gostaria de saber como fazer para adquirir o matbab, pois estou no ultimo periodo da faculdade e preciso para fazer minha monografia.
   Atenciosamente: mariluci

13 Oct 2005 David Price

This appears to be a useful tool; but it has bugs. For example, it sometimes deletes the end-of-line comments in the first line of code, without being asked to do so. It also gets confused with continued lines of code: sometimes not inserting spaces as requested when a line is continued, and moving the '...' to the next line, voiding the continuation.

13 Oct 2005 sarada seereddy

It is a good tool.So far i did'nt have any problem and i feel that some more features should be added to it.

08 Apr 2008 Steve Ratts

Is this code still being maintained? If so, where can I report a bug? Also, would it be possible to request a new feature? Specifically, I'd like a switch to be able to force a single space after a comma when the comma is separating a list of items, i.e. bewteen (), [], or {}.

Please login to add a comment or rating.
Updates
06 Oct 2005

"Open file in editor" bug fixed -- thank you Robert Paynter

10 Oct 2005

Spacing + and - bug fixed -- thank you Alberto Zin

20 Oct 2005

Various bug fixes -- thank you David Price

31 Oct 2005

Spacing + and - in case statements bug fixed -- thank you Troy Hanson

02 Nov 2005

Added "force ; on end of lines" option and various changes

Tag Activity for this File
Tag Applied By Date/Time
path Pascal Getreuer 22 Oct 2008 07:51:56
directories Pascal Getreuer 22 Oct 2008 07:51:56
files Pascal Getreuer 22 Oct 2008 07:51:56
format Pascal Getreuer 22 Oct 2008 07:51:56
strip comments Pascal Getreuer 22 Oct 2008 07:51:56
code style Pascal Getreuer 22 Oct 2008 07:51:56
utilities Pascal Getreuer 22 Oct 2008 07:51:56
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com