Useful and convenient functions for the everyday use of Matlab
-
allscreen.m:
Pops-up a matlab figure the size of the current screen (or close to). -
decimator.m:
Self-explainatory. Replace with Matlab built-in function "downsample". -
ex.m:
Extracts the images from a subplot-based figure. -
figure_function.m:
Prints figure as .pdf without the annoying extra white space. -
frequencylog.m:
Plots FFT of signal on a log scale. Also available without the log scale as frequency.m -
mtit.m:
Plots a title in between axes. Extracted from here. -
printing.m:
Prints the current opened figure on .eps, .fig and .pdf formats. Makes use of figure_function.m -
printing_image.m:
Prints the current opened figure on .eps, .fig , .pdf and .png formats. Makes use of figure_function.m -
inserter.m:
Self-explainatory. Complementary and opposite to decimator. -
Isoutlier.m:
Homecooked code of Matlab function 'isoutlier'. -
outlier.m:
Finds outliers on skewed distributions. Requires tuning depending on data. -
xo.m:
Gives an error on purpose. Used to stop the code at desired locations. -
im.m:
Generates an image, with colorbar and colormap. Used for faster visualization of matrices. -
tfcohf2.m:
Set of functions which calculate the time-frequency coherence. Extracted from here. -
boxplotnout.m:
A normal boxplot that makes outliers invisible. -
shadedErrorBar.m:
Self-explainatory. -
pretty_colors.m:
Colormap with nicer colors from blue to red. Requires the cbrewer library added to the path. -
envelope1.m:
Calculates the envelope of a signal via rectification and Low-pass filtering. -
stripes.m and stripesig.m:
Takes a binary vector to plot trasparent stripes on a plot. -
progress_bar.m:
Progress bar to keep track of For iterations. -
Plot_in_Plot.m:
Template code indicating how to plot a graph inside another one. -
stack_signal_example.m:
Example script for stacking signals over each other. Credits: Friedrich (Matlab Staff) -
getfolder.m:
Get folders within current folder, easy to remember . -
ConsecutiveOnes.m:
Finds clusters of consecutive ones. Credits: Image Analyst -
narrow_colorbar.m:
Self-explained. Credits: UCSD -
messbox.m:
Displays a message box with a custom text. -
colortest.m:
Self-explained. Credits: MathWorks -
whosthis.m:
Displays the name of the current .m file open on the editor. -
merge_intervals.m:
*Merges intervals that overlap. Credits: David Goodmanson * -
merge_mat.m:
*Merges matrices of different dimensions by filling with zeros. Credits: Andrei Bobrov * -
beepnoise.m:
*Plays a beep noise. Credits: Jan *