No BSD License  

Highlights from
Find constant variables

Be the first to rate this file! 0 Downloads (last 30 days) File Size: 2.39 KB File ID: #21218

Find constant variables

by Joao Silveira

 

25 Aug 2008 (Updated 28 Aug 2008)

Finds constant variables in .m files

| Watch this File

File Information
Description

FINDCONSTANTS searches in all the .m files under a chosen directory and writes to an output file (results.txt) all the assignments of constant values to variables. The core of the programme is the regular expression that can be modified to search specific strings.
Assignments have to comply with matlab format (eg: x_1.y_2 = 1.5e-2;)

I use it in programs with many files, where sometimes people use constant values that then forget to update when the conditions are changing.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
28 Aug 2008

Updating description

Tag Activity for this File
Tag Applied By Date/Time
constant variables Joao Silveira 22 Oct 2008 10:16:09
utilities Joao Silveira 22 Oct 2008 10:16:09
micsellaneous Joao Silveira 22 Oct 2008 10:16:09
m files Joao Silveira 22 Oct 2008 10:16:09

Contact us at files@mathworks.com