Directory

Pushd, popd, dirs in matlab

The following Matlab project contains the source code and Matlab examples used for pushd, popd, dirs. pushd, popd, and dirs implement a unix-style directory stack. It uses a global variable to hold the stack. Example usage: > cd myDir myDir> pushd( 'anotherDir' ) anotherDir> %excute commands here anotherDir> dirs    myDir anotherDir> popd myDir> % back to where you started

Returns the names of all m-files in a directory or directory tree that contain a search string. in matlab

The following Matlab project contains the source code and Matlab examples used for returns the names of all m-files in a directory or directory tree that contain a search string. . Long ago, I found that I quite liked Brett Shoelson's function mfilegrep, but back then it had a bug in it.

Matlab version of pushd & popd, both available in unix/linux and dos. adds some matlab specific feat in matlab

The following Matlab project contains the source code and Matlab examples used for matlab version of pushd & popd, both available in unix/linux and dos. adds some matlab specific feat . PUSHD(directory/file-spec) stores the current working directory and changes current directory to the one specified in the string directory-spec.

Explorer quick access to the windows explorer in matlab

The following Matlab project contains the source code and Matlab examples used for explorer quick access to the windows explorer. The Windows Explorer is opened in one of two modes: either in the "Explorer from here" mode with the Folder hierarchy visible and its root at the specified directory, or in its basic mode showing only the contents of the specified directory.

Pushd, popd, and dirs in matlab

The following Matlab project contains the source code and Matlab examples used for pushd, popd, and dirs. Ever find yourself using Matlab and wishing you could quickly get back to the directory you were just in? Or the one before that? Ever wish the Unix commands pushd, popd, and dirs were implemented in Matlab? Here they are.

Go change directory (cd) easily in matlab

The following Matlab project contains the source code and Matlab examples used for go change directory (cd) easily. Several possible actions: - select one or several folders to search within (use "go :add"); - search a folder containing a given keyword ("go newmark" will search for subfolders containing the keyword "newmark"); - change directory immediately if only one folder is found; display clickable links in Matlab command window otherwise; - record a macro ("go :macro mymacro" stores a macro called "mymacro" and the current folder); - use a macro (go :mymacro).

Determine the size of a folder/directory in bytes, including all subdirectories. in matlab

The following Matlab project contains the source code and Matlab examples used for determine the size of a folder/directory in bytes, including all subdirectories. . bytes = DirSize('pathOfInterest'); Sometimes I write a script that needs to know how large directories are. I couldn't find a function to already do this, so took a stab at it.

Create folder and rename if another has the same name in matlab

The following Matlab project contains the source code and Matlab examples used for create folder and rename if another has the same name. USAGE create_folder(newdir) Folder "newdir" will be created. If there is already a folder named "newdir" with any file regardless of the level, it will be renamed to "newdir-backup" (or "newdir-backup02", "newdir-backup03", ...). If "newdir" is empty or contains only folders, nothing is done.

List files folders recursively in matlab

The following Matlab project contains the source code and Matlab examples used for list files folders recursively. USAGE: selection = select_files(folder,pref,mid,suf,ext,type,path) selection = select_files_rec(folder,pref,mid,suf,ext,type,fpath,levels)   INPUT: - FOLDER: parent directory to look the files/folders in - PREF: files/folders prefix - MID: middle part of the files/folders - SUF: files/folders suffix - EXT: files extension - TYPE: 'files' or 'folders' - FPATH: 'path' (SELECTION will have the full path) or 'nopath' (only files/folders names)

Function returns all subfiles, subdirectories, and size of a directory in matlab

The following Matlab project contains the source code and Matlab examples used for function returns all subfiles, subdirectories, and size of a directory . This function takes in an absolute folder directory and returns the absolute path of all subfiles, subfolders, and the size of the directory. This function helped me create an automatic backup script on my computer.

use recursion to visually list files and folders in visual basic

The following Visual Basic project contains the source code and Visual Basic examples used for use recursion to visually list files and folders. 1) Will recursively list files and folders under a specified folder set by a DirListBox 2) Visually shows the file and directory hierarchy by indenting lower level of files and folders within the ListBoxes 3) Create 2 listboxes, 1 command button, and 1 DirListBox, use default names given (List1, List2, Command1, Dir1).

Pages

Subscribe to RSS - Directory