Perform find and replace operations against a folder structure of MATLAB .m files.
This app enables you to search for text in *.m files in a folder or folder structure. Then, you may apply replacements to the instances found. Regular expressions may optionally be used in the search
- 609 (All time)
- 4 (Last 30 days)
- 4.9 / 5
- Community
-
20 Nov 2018
Replace the specified text in a list of files with new text.
This utility will replace all string matches in the target files with a given string. This is similar to 'Replace all' in the editor, except that it can be used programmatically and on multiple
- 2.4K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
1 Sep 2016
REPLACEINFILE replaces characters in ASCII file using PERL
Easy and efficient way to replace strings in ASCII files. For example replace commas ',' to points '.' in large data files for easier load.
- 8.8K (All time)
- 2 (Last 30 days)
- 4.8 / 5
- Community
-
8 Jan 2009
Interpolates (& extrapolates) NaN elements in a 2d array.
Interpolate NaN elements in a 2-d array using non-NaN elements. Can also extrapolate, as it does not use a triangulation of the data. Inpaint_nans offers several different approaches to the
- 48.9K (All time)
- 51 (Last 30 days)
- 5.0 / 5
- Community
-
13 Aug 2012
The Chemical Reactor Design Toolbox
The CRD Toolbox for Simscape is dedicated to modelling and design of Chemical Reactors and Processes
equilibrium.An ideal multicomponent mixture of an arbitrary number of individual species in each phase is considered. By combining several basic blocks into subsystems composite blocks can be defined. Iteratively
- 411 (All time)
- 15 (Last 30 days)
- 5.0 / 5
- Community
-
11 May 2023
Find and replace substring in file
strrepInFile works as the strrep function but replaces substring in file.For example, strrepInFile simplifies import of numeric data with comma as decimal mark :strrepInFile('data.txt', ',',
- 53 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
8 Feb 2017
Make Inkscape PostScript files compatible with psfrag in LaTeX
eps files exported with Inkscape cannot be used with psfrag.
[<010203>-1<0405>-1<06>-1<07>1<08>129<090a06>]TJ and replaces them by strings of the form (int)Tj, where int is a number 1,2,3, ...Finally you can use \psfrag{int}{your latex expression} in LaTeX.This function is a modification of the function
- 855 (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
8 Dec 2010
Search and replace in files
%% REPINF - Replaces in files (recursive through n levels of subdirs).%% Two search strings optional (for replacing all between).
- 2K (All time)
- 1 (Last 30 days)
- 4.0 / 5
- Community
-
12 Oct 2001
- 2K (All time)
- 6 (Last 30 days)
- 5.0 / 5
- Community
-
11 Jul 2012
Import SBML file with function definitions into SimBiology
Functions to import SBML files containing function definitions into SimBiology.
that case, to ensure that the ODE solver registers the transitions events are added to the SimBiology model.- sbmlimportFunReplaceThis function replaces all function calls in the reaction rates by the
- 333 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
1 Sep 2016
Matlab import and export text binary text binary
Linux and Octave compatible
.m ProcessImagesInFolderByTecPlot.mReviseTecPlotMacroFile.mtest_matrixToTecplotBinaryFile.mTransformAndSaveTecPlotData.mTranslateTecPlotVectorDatToVelMat.m
- 1.2K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
8 Nov 2011
The app is used for PKPD Modeling and Simulation.
The source code and case studies are included in this toolbox. The description of gPKPDSim and case studies are in the publication titled "gPKPDSim: A SimBiology®-based GUI application for PKPD
- 1.3K (All time)
- 10 (Last 30 days)
- 5.0 / 5
- Community
-
29 Sep 2021
Search and Replace a WordSet Library
Library with functions to (i) search and replace a set of words in a set of files and (ii) filter characters to validate a file.
: fc_lib_file_search_replace_wordset.Each file has a brief description of itself and some examples of usage.%% functions used in this librarysctricly
- 76 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
17 Jun 2019
replaces text in multiple files
FindAndReplaceInAllFiles - replaces text in multiple files Extends the global find (shift+ctrl+F) window by a global find and replace option. Usage
- 8 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
13 Jul 2023
- 2.5K (All time)
- 3 (Last 30 days)
- 3.5 / 5
- Community
-
16 Apr 2011
This function finds and replaces strings in a text file
SYNTAX:findreplace(file,otext,ntext)findreplace(file,otext,ntext,match)file: text file name (with or without path)otext: text to be replaced (old text)ntext: replacing text (new
- 13.3K (All time)
- 1 (Last 30 days)
- 3.6 / 5
- Community
-
27 Dec 2005
Recursively Replace all M Files with P Files
Save time generating p-code.
Provide a top-level directory and code will traverse all directories, replacing m-files with p-files.Your m-files will be lost, so back up the directory you are running this on if you want to keep
- 566 (All time)
- 1 (Last 30 days)
- 3.0 / 5
- Community
-
22 Jun 2010
MATLAB scripts for EEG/eye position data analysis
Various MATLAB scripts for EEG/eye position data analysis. See the FormatFigures folder for broadly applicable visualization functions, StructsAndFiles for struct manipulation, and LogReg for machine
- 318 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
11 Jun 2018
Facilitates the reuse of matrix factorizations in large dense linear algebra problems.
. Normally you'd want to use MATLAB's own lslin to solve this type of problem.Assume further the system to be sufficiently well conditioned. In this case, the method of solution based on explicit normal
- 647 (All time)
- 3 (Last 30 days)
- -- / 5
- Community
-
20 Apr 2011
Store and manipulate symmetric matrices with half of the dense memory consumption
get an 'Out of memory' error.Symmetric matrices stored in packed format take up only (approximately) half of the memory that would be necessary to store them in full; furthermore, element-wise
- 570 (All time)
- 2 (Last 30 days)
- -- / 5
- Community
-
9 Jan 2014
Reuse intermediary results in multiple related convolutions with the same data but different kernels
multiplication in the frequency domain, we reuse the FFT of the data, and need to compute only the FFT of the kernel and the IFFT of their product. So this helps if the kernels are small and many and the data is
- 932 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
7 Mar 2011
extend Matlab Editors callback
Extends the editor features. Closing brackets, Operator. Templates, Keyboard Shortcuts
View README.txt#============================== # Startup #============================== # the startup file creates a edit.m file in specified path (needs to be set) directory.# you can change this
- 675 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
26 Sep 2016
Replace one or more strings in one or more files safely
strrepfile(filename,S1,S2) replaces all occurrences of the string S1 in the file filename with the string S2. S1, S2 may also be cell arrays of strings of the same size, in which case the replacement
- 365 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
11 Sep 2013
Set and get string field in caller.
These functions allow you to set and get a field string contained in the caller to store information in comment lines. If you set a field in your script or function with format "@field_name:" you can
- 5 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
22 May 2020
A MATLAB toolbox for exporting publication quality figures
https://undocumentedmatlab.com/articles/export_fig Notes:Background color and figure dimensions are reproduced (the latter approximately, and ignoring cropping & magnification) in the output file. For transparent background (and semi-transparent
- 367.9K (All time)
- 410 (Last 30 days)
- 4.9 / 5
- Community
-
16 Oct 2025
Find and replace in currently selected editor text.
Uses the MATLAB Editor API and STRREP to find and replace all occurrences of a substring within the currently selected editor text.
- 977 (All time)
- 1 (Last 30 days)
- 4.8 / 5
- Community
-
21 Sep 2012
Extract (pick out) data points off image files.
GRABIT Extracts data points from an image file.GRABIT starts a GUI program for extracting data from an image file. It is capable of reading in BMP, JPG, TIF, GIF, and PNG files (anything that is
- 108.3K (All time)
- 317 (Last 30 days)
- 4.8 / 5
- Community
-
1 Sep 2016
STLREAD imports geometry from a binary stereolithography (STL) file into MATLAB.
In addition to the STLREAD import function, this submission also includes a small demo that loads an STL model of a human femur bone.FV = STLREAD(FILENAME) imports triangular faces from the binary
- 40.4K (All time)
- 25 (Last 30 days)
- 4.7 / 5
- Community
-
20 Jul 2011
Replace several elements at once
Current version 1.4, dec 2006REPLACE - Replace ElementsB = REPLACE(A,S1,S2) returns a matrix B in which the elements in A that are in S1 are replaced by those in S2. In general, S1 and S2 should have
- 4.1K (All time)
- 1 (Last 30 days)
- 4.0 / 5
- Community
-
8 Dec 2006
MATLAB File Association & Shortcut Fix
Fixes trouble with MATLAB file associations and missing shortcuts in Windows
Writes a Windows registry file that fixes problems with MATLAB file associations in Windows, e.g., that m-files doesn't open up in MATLAB or opens up in a new instance. Can also be used to switch
- 42.1K (All time)
- 50 (Last 30 days)
- 4.9 / 5
- Community
-
19 Mar 2021
filefun: Apply a function to files
Adds multi-file functionality to functions handling only single files.
files in current directory:filefun(@openfig,'*.fig')Pick a couple of image files and compute their mean RGB values:pth=fullfile(matlabroot, 'toolbox', ... 'matlab', 'demos', 'html
- 3.7K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
16 Feb 2007
Alphanumeric sort of filenames or filepaths, with customizable number format.
NATSORTROWS: http://www.mathworks.com/matlabcentral/fileexchange/47433-natural-order-row-sortSummaryNatural order sort the text in a string/cell/structure array. Sorts the text by character code taking into
- 36.8K (All time)
- 153 (Last 30 days)
- 5.0 / 5
- Community
-
10 Apr 2026
stlwrite - write ASCII or Binary STL files
Export a variety of inputs (patch, surface) to an STL triangular mesh
FV (a structure with fields 'vertices' and 'faces'). stlwrite(FILE, FACES, VERTICES) takes faces and vertices separately, rather than in an FV struct stlwrite(FILE, X, Y, Z) creates an
- 30.5K (All time)
- 32 (Last 30 days)
- 4.9 / 5
- Community
-
4 May 2018
Fixes anti-aliasing issues for EPS files generated from pcolor plots
The file fixes anti-aliasing issues (diagonal artifacts) for EPS files generated from pcolor plots by replacing triangular tiles by proper rectangular ones.
- 2K (All time)
- 1 (Last 30 days)
- 3.7 / 5
- Community
-
23 Oct 2013
cprintf - display formatted colored text in Command Window
Displays sprintf-formatted strings in the Command Window using the specified color/underline/bold style
FPRINTF functions.CPRINTF then displays the text in the Command Window using the specified STYLE argument. The accepted styles are those used for Matlab's syntax highlighting (see: File / Preferences /
- 29.7K (All time)
- 128 (Last 30 days)
- 4.9 / 5
- Community
-
22 Apr 2026
MATLAB files for Exercises Solving ODEs in MATLAB
series of exercises referenced in the videos using this set of downloadable MATLAB files.
- 14.4K (All time)
- 22 (Last 30 days)
- 4.8 / 5
- Community
-
26 May 2017
MATLAB Support for MinGW-w64 C/C++/Fortran Compiler
Install the MinGW-w64 C/C++/Fortran compiler for Windows
C/C++/Fortran compiler. Installation Instructions:Select the button in the upper right-hand corner of this page. It might be labelled "Install" or "Download". "Install" button instructions: Select either the
- 1.2M (All time)
- 8.2K (Last 30 days)
- 2.9 / 5
- MathWorks
-
26 Jan 2026
Distance based interpolation along a general curve in space
A common request is to interpolate a set of points at fixed distances along some curve in space (2 or more dimensions.) The user typically has a set of points along a curve, some of which are closely
- 13K (All time)
- 31 (Last 30 days)
- 5.0 / 5
- Community
-
16 Aug 2012
read any (text) file, either UTF8 or ANSI
specified in a special leading bit, it is not possible to read this with Matlab nor is it actually guaranteed to be present. It is therefore possible that a file is read with the wrong encoding, although this
- 741 (All time)
- 4 (Last 30 days)
- 4.3 / 5
- Community
-
19 Jan 2023
Polynomial modeling in 1 or n dimensions
-0.5 0.041667 -0.0013889so we got the expected result.Of course, polyfitn works in higher dimensions, as it was this problem it was really designed to solve.x = rand(100,1);y = rand(100,1);z =
- 39K (All time)
- 73 (Last 30 days)
- 4.8 / 5
- Community
-
27 Apr 2016
Replace NaNs in a 1D array by interpolation
This function replaces NaN values in a 1D array with interpolated or neighboring values. Interpolation schemes assume data are evenly spaced. This function does not extrapolate.Syntaxx = repnan(x);x
- 1.9K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
1 Nov 2014
Get sheet names from Excel file
Reads the sheet names from Excel file for the given format :: .xls, .xlsm, .xlsx, .xltm, .xltx, .xltm
: xl_xlsfinfo% Author : Pruthvi Raj G% Version : Version 1.0 - 2011b Compactible% Description : Finds all the sheets in the Excel file ( .xls, .xlsm, .xlsx, .xltm, .xltx, .xltm
- 583 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
13 Apr 2020
Replace strings in nested structure and cell arrays.
This function recursively traverses an arbitrarily deeply nested set of structure and cell arrays, finds all instances of a given string, and replaces it with a new string.Beyond any simple text
- 657 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
9 Jun 2010
Read .xyz files and make gridded datasets.
Here are two functions: xyzread reads text .xyz files into your Matlab workspace. This is written for GMT-generated .xyz files, but may work for other .xyz files as well. xyz2grid converts the
- 5.2K (All time)
- 6 (Last 30 days)
- 4.9 / 5
- Community
-
6 Apr 2016
find_replace_system in Simunlink API
Searches any block/annotation/signal property in a model and replaces with the new value.
"find_replace_system" will search and replace almost anyblock/annotation/signal property in Simulink. Ref: Simulink API documentation "find_system". Please refer the syntax and examples below. Syntax
- 447 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
25 Mar 2022
Convolution in Digital Signal Processing
Interactive courseware module that addresses common foundational-level concepts taught in signal processing courses.
# Convolution in Digital Signal Processing[![View on File
- 1.7K (All time)
- 23 (Last 30 days)
- 5.0 / 5
- Community
-
14 Oct 2024
MD5 or SHA hash for array, struct, cell or file
DATAHASH - Hash for Matlab array, struct, cell or fileHash = DataHash(Data, Opts, ...) Data: Array of built-in types (U)INT8/16/32/64, SINGLE, DOUBLE (real or complex) CHAR, LOGICAL, CELL
- 14.5K (All time)
- 26 (Last 30 days)
- 5.0 / 5
- Community
-
19 May 2019
LOADFIXNAMES loads a mat file, fixing invalid names
Loads a mat file into the caller's workspace, fixing invalid variable and field names.
loading variables into workspace DescriptionLOADFIXNAMES loads a mat file into the workspace, fixing invalid names. All invalid characters are replaced with an underscore. Also, if the first character is
- 1.8K (All time)
- 4 (Last 30 days)
- 5.0 / 5
- Community
-
1 Aug 2017
Simulink Model String Replacement
replace a string in Simulink object names with another
mdl_strrep is a utility to identify blocks and other Simulink components that contain a particular string in their name. MDL_STRREP(OBJECT,S1,S2) replaces all occurrences of the string S1 in the name
- 760 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
1 Sep 2016
Fast renaming of files or folders
, Source is a folder and Dest is on another drive. Msg: CHAR, empty on success, some information in case of problems.COMPILE: The fast C-Mex file must be compiled before using. See FileRename.c for details
- 3.3K (All time)
- 4 (Last 30 days)
- 5.0 / 5
- Community
-
7 Jan 2023
FindReplaceTool helps to search a string in a Simulink model and replace it with another string.
FindReplaceTool helps to search a string in a Simulink model and replace it with another string.FindReplaceTool will help the user to Find-Replace a string in Simulink and Stateflow models.Usage:Add
- 103 (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
25 Mar 2022
Analyze N-dimensional Convex Polyhedra
Find vertex or (in)equality forms of convex polyhedra in R^n (for n not super large). Also, compute their intersections and unions.
This submission contains a set of files for analyzing N-dimensional convex polyhedra. It is intended for fairly low dimensions N -- basically low enough so that vertex and facet enumeration using
- 6.5K (All time)
- 14 (Last 30 days)
- 4.9 / 5
- Community
-
21 Mar 2021
Updated code to replace colors in figures with hatching
This is an update of Brian Katz's update to Ben Hinkle's original applypatch and makepatch code for replacing colors in figures with hatches. This new version allows you to expand the width of hatch
- 5.1K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
21 Feb 2008
Read VAXD and VAXG files in R2008b and later
These functions allow the user to read VAXD and VAXG files in MATLAB R2008b and later.
In R2008b, fopen no longer supports vaxd and vaxg file formats. This tool lets your use the ieee-le file format to read these files in R2008b and later. These tools are not for writing vaxd or vaxg
- 1.9K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
1 Sep 2016
Saves large numeric arrays more quickly than Matlab's built-in save command
larger files. It only improves speed for variables that are plain arrays; elements of structures or cell arrays are not altered.Example:% First make some data>> ops = struct('algorithm
- 5.1K (All time)
- 8 (Last 30 days)
- 4.4 / 5
- Community
-
4 Jan 2013
Find and replace GUI for Simulink
- 158 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
6 Mar 2016
Performs regular expression replacement in a file or files
this case the single string repstr will replace all the patterns in exp.-----regexprepfile replaces the string by creating a temporary copy of the file in which the replace is to be performed, replacing
- 271 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
11 Sep 2013
Replace Simulink Scope/Display Blocks with Terminators
Cleans Simulink models of all Scope and Display blocks by replacing them with Terminator blocks.
. These lost blocks can effect the run-time of the model according to The Mathworks: http://www.mathworks.com/support/solutions/data/1-18AAG.html?solution=1-18AAG This m-class file loads a simulink model
- 925 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
7 Jul 2009
- 3.9K (All time)
- 28 (Last 30 days)
- 5.0 / 5
- Community
-
15 Jul 2024