GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Neuro-Mechatronics-Interfaces/NHP_MATLAB_Utilities: Miscellaneous utilities that help handling data in MATLAB.

BranchesTags
Open more actions menu

Latest commit

 

History

104 Commits
104 Commits

Folders and files

NameName
Last commit message
Last commit date
+enum @ 68dd111
+enum @ 68dd111
 
 
.ssh
.ssh
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
Contents.m
Contents.m
 
 
MBoxtest.m
MBoxtest.m
 
 
NEO.m
NEO.m
 
 
ProgressPrinter.m
ProgressPrinter.m
 
 
README.md
README.md
 
 
SNEO.m
SNEO.m
 
 
add_page_numbers_to_svg.m
add_page_numbers_to_svg.m
 
 
add_sd_threshold.m
add_sd_threshold.m
 
 
apply_debounce.m
apply_debounce.m
 
 
apply_emg_filters.m
apply_emg_filters.m
 
 
check_values_with_tol.m
check_values_with_tol.m
 
 
concat_files.m
concat_files.m
 
 
concat_jsfiles.m
concat_jsfiles.m
 
 
concat_mfiles.m
concat_mfiles.m
 
 
contents_report_2_markdown.m
contents_report_2_markdown.m
 
 
datetime_2_date.m
datetime_2_date.m
 
 
export_emg_for_muedit.m
export_emg_for_muedit.m
 
 
export_svg.m
export_svg.m
 
 
export_with_formats.m
export_with_formats.m
 
 
find_overlapping_indices.m
find_overlapping_indices.m
 
 
fixCase.m
fixCase.m
 
 
generate_output_container_folder.m
generate_output_container_folder.m
 
 
get_block_name.m
get_block_name.m
 
 
get_default_filtering_pars.m
get_default_filtering_pars.m
 
 
get_filtering_label_string.m
get_filtering_label_string.m
 
 
get_limited_layout.m
get_limited_layout.m
 
 
get_subj_query.m
get_subj_query.m
 
 
get_tmsi_stim_data.m
get_tmsi_stim_data.m
 
 
index_matfiles.m
index_matfiles.m
 
 
interpsmooth.m
interpsmooth.m
 
 
isOnPath.m
isOnPath.m
 
 
link2folder.m
link2folder.m
 
 
ordered_emg_filters.m
ordered_emg_filters.m
 
 
parameters.m
parameters.m
 
 
parse_artifact_sync.m
parse_artifact_sync.m
 
 
parse_bit_sync.m
parse_bit_sync.m
 
 
parse_date_args.m
parse_date_args.m
 
 
parse_edges.m
parse_edges.m
 
 
parse_gestures_files.m
parse_gestures_files.m
 
 
parse_parameters.m
parse_parameters.m
 
 
parse_polybench_data_manager_notes.m
parse_polybench_data_manager_notes.m
 
 
parse_sync.m
parse_sync.m
 
 
parse_uevt_trials.m
parse_uevt_trials.m
 
 
parse_xml.m
parse_xml.m
 
 
parse_xy_grid_vec.m
parse_xy_grid_vec.m
 
 
patch_2_struct.m
patch_2_struct.m
 
 
pattern_name_to_metadata.m
pattern_name_to_metadata.m
 
 
pca_project_top2.m
pca_project_top2.m
 
 
print_model_info.m
print_model_info.m
 
 
print_timing_info.m
print_timing_info.m
 
 
print_tree.m
print_tree.m
 
 
print_windows_folder_link.m
print_windows_folder_link.m
 
 
progress.m
progress.m
 
 
sample_time.m
sample_time.m
 
 
save_figure.m
save_figure.m
 
 
showModelInfo.m
showModelInfo.m
 
 
tmsi_folder_2_datetime.m
tmsi_folder_2_datetime.m
 
 
tmsi_header_2_datetime.m
tmsi_header_2_datetime.m
 
 
transfer_plexon_files.m
transfer_plexon_files.m
 
 
transfer_uevt_files.m
transfer_uevt_files.m
 
 

Repository files navigation

NHP_Matlab_Utilities

Note: this repo must be added as a submodule named +utils for most of the functions to work together properly. Matlab package containing miscellaneous utility functions such as file-transfer shortcuts or random math functions.

Install

You should be in the repository folder that is the parent repo of this submodule, which should be added as a MATLAB package (i.e. with the leading + in the name of the submodule folder). For example, add it to your workspace repository as:

git submodule add [email protected]:Neuro-Mechatronics-Interfaces/NHP_MATLAB_Utilities.git +utils

This will add the folder with the correct package name. Adding +utils to the end of the git submodule add command is critical for making sure the functions work together properly.

Contents

Filtering Functions

  • add_sd_threshold - Adds yline threshold to plot using pre-stimulus data.
  • apply_emg_filters - Apply filtering to EMG signal in data struct x.
  • get_default_filtering_pars - Return default filtering parameters struct.
  • get_filtering_label_string - Returns string to indicate what filtering was done.
  • ordered_emg_filters - Apply filtering to EMG signal in data struct x according to a specific order of operations.

Math

  • interpsmooth - This function interpolates and smoothes a curve onto data points.
  • NEO - Returns the nonlinear energy operator (NEO) for signal X.
  • SNEO - Returns the smoothed nonlinear energy operator (SNEO) for signal X.

Parsers

  • tmsi_folder_2_datetime - Convert TMSi folder timestring to datetime.
  • tmsi_header_2_datetime - Convert TMSi header start_time field to datetime.
  • parse_artifact_sync - Outputs a vector of trigger events that match up with logic parsed from a threshold set under the assumption that the input is a vector with large stimulus-related artifacts in it.
  • parse_date_args - Parse date input arguments.
  • parse_bit_sync - Outputs a vector of trigger events that match up with the bit value from sync_bit. Accepts either a struct or vector.
  • parse_parameters - Parses input parameters given a default struct.
  • parse_polybench_data_manager_notes - Parse notes taken in Polybench Data Manager.
  • parse_uevt_trials - Parse table from io.load_uevt, identifying trial metadata.
  • parse_xml - Convert XML file to a MATLAB structure.
  • parse_xy_grid_vec - Parses xy grid to encapsulate values in x and values in y.
  • parameters - Return parameters struct, which sets default values for things like epoch durations etc.

Handling NML Data Structures

  • apply_debounce - Debounce vector of sample times so that each is separated by at least min_sample_interval samples.
  • export_emg_for_muedit - export_emg_for_muedit(data, fsamp, nChan, ngrid, gridname, muscle) Exports matfile for MUedit app.
  • generate_output_container_folder - Generate output folder (windows-like) path-string.
  • get_block_name - Return the string info corresponding to a given block.
  • get_subj_query - Return the subject-info args for most "load" and "plot" queries, given the subject query struct.
  • print_timing_info - Prints total time for a given function to run.
  • print_windows_folder_link - Print or return string to link to windows folder(s).
  • transfer_plexon_files - Transfer files from local location to remote data share.
  • patch_2_struct - Convenience function to convert patch handle to struct.

Typesetting and Formatting Text

  • showModelInfo - Print model info and optionally make figure for covariances.
  • contents_report_2_markdown - Convert Contents.m MATLAB index file into formatted Contents for README.md.
  • fixCase - Fixes the input string so first character in string is capitalized and rest are lower-case.
  • get_tmsi_stim_data - Return stim data specifically for TMSi blocks.
  • print_model_info - Prints sfit object model coefficients in Command Window, or to a text file ID (if specified).
  • pattern_name_to_metadata - Helper function to convert pattern files to metadata struct.
  • save_figure - Exports figure in desired file formats, creating output folder if needed.

About

Miscellaneous utilities that help handling data in MATLAB.

Topics

matlabnhppackagesubmoduleutils

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.