About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconget_contents (Scripts) Publisher's description

GET_CONTENTS Get the contents of a specified directory

GET_CONTENTS Get the contents of a specified directory


cont = GET_CONTENTS(directory)
cont = GET_CONTENTS(directory,str)
[cont,dirflag] = GET_CONTENTS(...)


CONT = GET_CONTENTS(DIRECTORY) obtains the contents (folder and file names) of the directory DIRECTORY and returns them to the cell array CONT. It ignores hidden files and folders (those starting '.').

CONT = GET_CONTENTS(DIRECTORY,STR) allows an additional filter string STR to be specified. Only elements that contain STR will be returned (files or folders. In addition, STR may be specified as one of three keywords: 'files' (to return names of all files in the directory), 'folders' (to return names of all folders in the directory), or '*.ext' where 'ext' is a user-specified file extension (to return all files with the extension '.ext'). STR is case sensitive.

[CONT,DIRFLAG] = GET_CONTENTS(...) returns a logical array DIRFLAG, the same size as CONT, indicating whether each element is a directory.


% Return all m-files in the current directory:
cont = get_contents(cd,'*.m')

System Requirements:

MATLAB 7.11 (2010b)
Program Release Status: New Release
Program Install Support: Install and Uninstall

get_contents (Scripts) Tags:

Click on a tag to find related softwares

Is get_contents (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.