image thumbnail

updated 13 hours ago

UIGETVARIABLES: Dialog to pass variables from workspace into GUI by Scott Hirsch

UIGETVARIABLES creates a dialog box for selecting variables from the base workspace (gui, utility, potw)

uigetvariables(prompts,varargin)

image thumbnail

updated 10 days ago

apply2VideoFrames by Nikolay S.

Apply any image processing function applied to all frames of input video. (avi, graphics import, processing)

assignin_value(name,value)

fileNamesList=filesListFromInput(inputsList, flagGUI, files...

fileNamesList=folderFiles(foldersList, nFolderDepth, filesF...

image thumbnail

updated 10 days ago

List of files from directories/files list or browser by Nikolay S.

Returns cell array of file names, needed by various functions. (directories, files, data import)

fileNamesList=filesListFromInput(inputsList, flagGUI, files...

fileNamesList=folderFiles(foldersList, nFolderDepth, filesF...

fullFileName=filesFullName(inFile, filesExtList, dlgTitle, ...

image thumbnail

updated 6 months ago

XML Parse-n-Find by Kesh Ikuma

XML parser and tag finder (utility, xml, parser)

xmlfind(S,varargin)

xmlparse(xmlfile)

xmlelem

image thumbnail

updated 6 months ago

Generates test sample(audio) by Chandra

Generates test samples by randomly combining a known set of test data. (utility, test, random)

generateTestData(data_loc,n,len,save,r)

image thumbnail

updated 7 months ago

Get Local System Date Format by Ivan Smirnov

This function returns the local system date format as a MATLAB-friendly date pattern. (utility, date, time)

getsystemdateformat()

image thumbnail

updated 8 months ago

deploypcode - recursively pcode files with help attached by Sven

DEPLOYPCODE recursively searches a directory for .m files, creating encrypted .p files with .m help (pcode, help, utility)

deploypcode(source_dir, target_dir, varargin)

image thumbnail

updated 10 months ago

cache_results by Dan Ellis

CACHE_RESULTS - caching function results to disk with transparent tracking of arguments (disk, cache, utility)

cache_results(cmd, args, cachename, cachedir, VERBOSE)

image thumbnail

updated 10 months ago

Clear Most by Jonathan Sullivan

Allows the user to clear all but leave the breakpoints in place. (clear, breakpoints, functions)

clear(varargin)

image thumbnail

updated 11 months ago

strcatrobust: Combine num, char and cell to one cellstr by Renwen Lin

% B = strcatrobust(1, {'a' 'b'},[2 , 3], 't') % B is {'1a2t' '1b3t'}; (data export, data import, str tool)

strcatrobust(varargin)

image thumbnail

updated 12 months ago

Crop video to sub elements by Nikolay S.

This function divides the input video to several parts/sub videos. (avi, image processing, concat)

outVideos=videoMultiCrop(varargin)

waitbarTimeRemaining(h_waitbar,h_tic,waitbar_progress)

image thumbnail

updated 12 months ago

samesize by Richard Crozier

Determine if all inputs are the same size in all dimensions. (size, dimensions, array)

samesize(varargin)

image thumbnail

updated 12 months ago

Require FEX package by Igor Podlubny

Let the user download and install those File Exchange packages, which your submission needs. (utilities, utility, install)

requireFEXpackage(FEXSubmissionID)

suggestFEXpackage(FEXSubmissionID, RecommendationText)

RequireFEXpackageExample1.m

image thumbnail

updated 1 year ago

Process named Arguments by Alan Robinson

Easily add optional, named arguments to your functions, like this: f('var_name', value). (named arguments, optional arguments, function calls)

procArgs(vars, prefix)

image thumbnail

updated 1 year ago

csprintf: Write formatted strings to cells. by Douglas Schwarz

Write text into a cell array of strings. (utility, strings, sprintf)

csprintf(varargin)

image thumbnail

updated 1 year ago

cmtdtool by Yasumitsu Ito

cmtdtool can reduce and automate manual operations required to perform model-based testing. (gui, simulink, utility)

cmtdtool.m

makeEMLTruthTableName(ConditionTable,ActionTable,InputVar,O...

makeharness_compareresults(mdl,data,opts)

image thumbnail

updated 1 year ago

sldvmisscovtool by Yasumitsu Ito

A GUI tool to obtain test cases for missing coverage objectives (gui, verification, utility)

_exportTemplate.m

_importTemplate.m

exportCSVfile.m

image thumbnail

updated 1 year ago

datastore by Ben Mitch

A tool for persisting data associated with the logged in user across sessions of Matlab. (utility, persistent, session)

datastore(app, key, value)

image thumbnail

updated 1 year ago

Concatenate video files subplot style by Nikolay S.

Concatenates videos to a single file. Handy for testing videos for differences. (avi, frame, graphics export)

outVideo=concatVideo2D(varargin)

waitbarTimeRemaining(h_waitbar,h_tic,waitbar_progress)

image thumbnail

updated 1 year ago

inpoly mex file by Sebastien PARIS

Find points inside or on the border of a polygon (inpoly, points, inside)

test_inpoly

mexme_inpoly.m

image thumbnail

updated 1 year ago

Apply multiple functions in a single function. by Nikolay S.

Allows the user to apply functions to inputs, with various input-output combination's. (variables, structures, utility)

varargout=funXapply(varargin) % (inArray, cellOfFuncs)

image thumbnail

updated 1 year ago

setname by Andrew Bliss

Changes the figure name to equal the figure title. (figure name, utility, gui)

setname(ax)

image thumbnail

updated 1 year ago

Pack & Unpack variables to & from structures with enhanced functionality by Adi Navve

v2struct packs and unpacks variables to and from structures with enhanced functionality. (variables, structures, struct)

v2struct

[]=v2structDemo2()

v2structDemo1()

image thumbnail

updated almost 2 years ago

Plotstack by Christos Saragiotis

A plot utility, to plot graphs one over the other (or one next to the other vertically) (measurement, demo, visualization)

plotstack(X,varargin)

image thumbnail

updated almost 2 years ago

backup and sync by Zhiqiang Zhang

backupfolder - backup a folder, syncfolder - sync folders, revertbackup - revert previous backups (backup, sync, utility)

backupfolder(p1, p2)

folderdiff(p1, p2, syncdirect)

getbackups(fileName, backupPath, begDate)

image thumbnail

updated almost 2 years ago

setParameterDefault by Tobias Kienzler

Simple function to set the default value for an optional function argument if omitted or empty. (utility, default, inputs)

isParameterDefined(pname)

setParameterDefault(pname, defval, warn)

image thumbnail

updated 2 years ago

Controllable tight subplot by Nikolay S.

Subplot wrapper, allowing better figure utilization, by tighter axes. (subplot, figure, axis)

h=subplot_tight(m,n,p,margins,varargin)

demo_subplot_tight.m

image thumbnail

updated 2 years ago

glinkaxes: interactive linkaxes by Kesh Ikuma

GLINKAXES lets user, via mouse clicks, to choose the axes to synchronize their axis limits. (handle graphics, utility, interactive)

glinkaxes(varargin)

image thumbnail

updated 2 years ago

LINECMENU by Matt Fig

Utility for creating a standard uicontextmenu for line objects. (uicontextmenu, uimenu, line)

defaultlinecreatefcn(varargin)

dualcolorplot(x,y,F,OPT)

linecmenu(varargin)

image thumbnail

updated 2 years ago

Relative Filename by Kesh Ikuma

A pair of M-files to convert between full and relative filenames. (file, path, utility)

rel2fullfile(files,refpath)

relfile(files,refpath)

image thumbnail

updated 2 years ago

Calculate Time Interval/ Difference by Michael Chan

To compute time interval, taking into account leap days that are subsumed within that interval. (time, bioinformatics, utility)

DateDiff(T1, T2)

adjustUnits2(upperUnit, lowerUnit, base)

daysinmonth(varargin)

image thumbnail

updated 2 years ago

Add a background gradient to plots by Scott Hirsch

Add a background gradient to plot axes to make them look a little fancy. (graphics, utility, gradient)

addgradient(ax,topcolor,bottomcolor)

image thumbnail

updated 2 years ago

Improved 'vline' by Karl

Same syntax as original 'vline', but with several improvements. (plot, line, vertical)

vline2(varargin)

image thumbnail

updated 2 years ago

selectfigure by Ben Mitch

Select a figure by text string, rather than by number, avoiding conflicts between scripts. (figure, utility)

selectfigure(name)

image thumbnail

updated 2 years ago

Sending reports and timestamped file by emailing by Michael Chan

Illustrates result updates, activity tracking, timestamping and file zipping, tarr'ing via email. (report, test, zip)

send_mail (senderMail, password, ...

timeStampedFile( file, numberOfFileExtensions, secondsMode ...

usageTar_unTarFiles.m

image thumbnail

updated 2 years ago

Track, Collect And Tar Inputs And Outputs by Michael Chan

Illustrates status tracking and collation of inputs and results. The package is tar'red for sending. (track, time, tar)

savefigs(imageResultRepository, imageFileType)

timeStampedFile( file, numberOfFileExtensions, secondsMode ...

usageTar_unTarFiles.m

image thumbnail

updated 2 years ago

Send Timed Alerts Over Email by Michael Chan

Illustrates the use and enhanced version of standalone alert with email notifications. (time, email, alert)

alarm(t, msg, varargin)

deleteAlarm(obj, edata) %#ok

displayAlarm(obj, edata, msg) %#ok

image thumbnail

updated 2 years ago

ss2sf - Subsystem-to-S Function by Cole Stephens

Convert a subsystem to an s-function via the MATLAB command line. (simulink, sfunction, s function)

ss2sf(mdl,subsystemNames)

image thumbnail

updated 2 years ago

File Ordering Patch Utility for MATLAB by Michael Chan

The utility patches the reordering considering the length of the filename during the sorting. (string, utility, directory)

cell2str(c,n,mode)

displayImagesInDirectory(targetFolder, imageFiles, imageFil...

listFilesInDirectory( targetFolder, imageFileType )

image thumbnail

updated 2 years ago

sinspace by Sky Sartorius

Generates a sine-spaced vector with elements clustered at one of the two endpoints (clustered, clustering, sine)

sinspace(d1, d2, n, factor)

image thumbnail

updated 2 years ago

cosspace by Sky Sartorius

Generates cosine- or acos-spaced vector with elements clustered or sparse at the endpoints (cosine, spacing, spaced)

cosspace(d1, d2, n, factor)

image thumbnail

updated 2 years ago

Shortcut tools by Richie Cotton

Programmatically manipulate shortcuts. (shortcut, toolbar, utility)

AddBrowserFavourite(label, callback)

AddShortcut(label, callback, icon, category, editable, over...

AddShortcutCategories(categories)

image thumbnail

updated 2 years ago

inputEmu: Keyboard & Mouse Emulator (v1.0.1) by Kesh Ikuma

A Java-based function to control keyboard & mouse programmatically (keyboard, mouse, automation)

inputemu(varargin)

image thumbnail

updated 2 years ago

inputsdlg: Enhanced Input Dialog Box (v1.3) by Kesh Ikuma

Predefined dialog box function to accept user inputs of several forms (dialog, inputdlg, uigetdir)

inputsdlg.m

inputsdlg_demo.m

image thumbnail

updated almost 3 years ago

WHO for a given CLASS by Yvan Lengwiler

Displays a list of variables in the base workspace of a given class. (utility)

whoclass(varargin)

image thumbnail

updated almost 3 years ago

Preference tools by Richie Cotton

Programmatically get/set GUI preferences. (preferences, utility)

CheckForJVM()

GetPreference(name)

JavaColor(rgb)

image thumbnail

updated almost 3 years ago

Compare Nested Cell & Struct Arrays Recursively by Ameya Deoras

Compare two cell or struct arrays and find exactly where they differ (utility, struct, cell)

celleq(cell1, cell2, funh2string, ignorenan)

structeq(struct1, struct2, funh2string, ignorenan)

image thumbnail

updated 3 years ago

improved xlswrite.m by Barry Dillon

Makes xlswrite use 'persistent' actxserver and hence much faster (xlswrite, excel, utility)

[success,message]=xlswrite(file,data,sheet,range)

image thumbnail

updated 3 years ago

Generate a new function m-file, with documentation by Richie Cotton

This makes it really easy to document your functions in a standard format. (utility, template)

GenerateFunctionMFile(ask)

GetUserLoginName()

fopen0(varargin)

image thumbnail

updated 3 years ago

Check the number of arguments to a function by Richie Cotton

Prettify checking the number of arguments to a function. (inputs, utility)

CheckNumberArgs(minargs, maxargs)

Contact us