Skip to content

RingoHHuang/my-MATLAB-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

My MATLAB Functions

This repository contains custom convenience functions that I frequently use for my MATLAB projects.

Mostly, I'm tired of rewriting the same code because I lacked an organized system of saving my convenience functions.

resample_with_nans

Convenience function of resample (Signal Processing Toolbox) that preserves NaNs (instead of interpolating over them). Also automatically adds padding to the start and end of the timeseries to avoid edge artifacts.

Usage:

[Y, Ty] = resample_with_nans(X, Tx, Fs)

  • From resample documentation: uses interpolation and an anti-aliasing filter to resample the signal at a uniform sample rate, Fs, expressed in hertz (Hz)
  • Optional argument pad_length (default is 20) is the number of samples for forward and rear padding before applying resample

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages