A hack to quickly replace multiple
characters/strings in a string with
characters from another string.
Crate a valid variable name from a string. All characters except letters, numbers and _ are removed. Also, numbers and _ are removed from the start of the name.
Uses a multiline regular expression to retrieve patch details from a darcs (http://www.darcs.net) inventory file.
The regular expression is defined in verbose format for sanity's sake.
You want to replace that portion of a string at a given position.
This function enables you to directly write data from a cell array into a text file, which functions like FWRITE and FPRINTF do not.
fwritecell(filename, format, data)
writes cell array "data" to the...
A small utility class to read single characters from standard input, on both Windows and UNIX systems. It provides a getch() function-like instance.
fRMField: Remove field(s) from a struct - fast C-MEX
This function is about 5 to 10 times faster than RMFIELD of Matlab 2009a.
T = fRMField(S, Name)
S: Struct or struct array.
Name: String or cell string....
Adds a complete function to Media Mover to remove/delete files from the Harvest, Process and Storage steps. Should be used with caution as it has not undergone significant testing, and if configured improperly could result in loss of original...
Programmers in ASP can learn the ways to remove duplicate data from a given string using this ASP article that gives the required functions within a sample program. The inbuilt program accepts strings with duplicated data that are seperated by the...
This is useful function in case you want to enlist all files from a folder and it's sub-folder with given file extension list.
Input argument is the folder name with complete path as a string(e.g. '/media/Nitin/SSA/FolderName').
This example shows how to extract text informations from a PDF file without the need of system dependent tools or code. Just use the pyPdf library from http://pybrary.net/pyPdf/
One liner code to shift each char of a string by some passed value
very simple encryption :)
added version 2 fixing following bugs:
1. Capital chars are shifted correctly.
2. Only alpha numeric chars are shifted.
This basic model shows you how to acquire live data from a Tektronix oscilloscope into Simulink. This model was developed for the Tektronix TDS 2012 oscilloscope but may work with other Tektronix scopes with little or no modifications.
Simple graphical example to demonstrate repeated execution of a d-de?callbackd-deOao function of a button (d-de?togglebuttond-deOao). The algorithm can be included in any other code(s)
This code solves biot savarts law to evaluate magnetic field from a circular coil at all points in the plane which is perpendicular to the plane of the coil.
coil is situated in the X-Y plane centered at origin having radius =6 and we want to...
Learn how to get the results from a DB query: [Error / Vield Value], [TRUE / FALSE], [FOR ... NEXT], [WHILE ... WEND]
You want to get the items from a sequence (or other iterable) a batch at a time, including a short batch at the end if need be.
Wanting to acquire analog data from a National Instruments USB multifunction device using my Mac, I wrote this set of functions to allow "on demand" acquisition from multiple analog input channels. The routines provide analog input only,...
A dialog to select multiple strings from a set of specified strings. The selcted items can be moved up and down to change the order. The dialog returns the selected items, and a boolean flag indicating if the user pressed Ok or Cancel. Text for a...
This module gives the ability to add extra markers from a views to pre-existing map made with the GMap Module.
1. This module must be used a page that has a Gmap Map on it. It doesn't create an actual map.