In Matlab, there is not distinction between indexing and calling. Both are accomplished with parentheses.
a = 1:5
b = a(2:3) %indexing
%Code: https://www.mathworks.com/matlabcentral/fileexchange/30023-tdms-reader | |
file_path = 'D:\repos\SVN_FOLDERS\Labview\TDT_Controller\Modules\ENG Recorder\Data\Block-003_ENG.tdms'; | |
%TDMS file and index at (download index to speed up reading) | |
%https://drive.google.com/drive/folders/1iiwPMvn5l5nrMOwrt5sSBYrCm7SyJAi1?usp=sharing | |
%This file contains: | |
%/'Data'/'Trigger' | |
%/'Data'/'Distal' |
#include <immintrin.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
#include <string.h> | |
#include <x86intrin.h> |
// gcc -std=c11 -mavx2 -o max_v2 max_v2.c | |
#include <immintrin.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <stdint.h> | |
int main() { | |
This code listens for keys that have been pressed and calls a Matlab callback telling the callback what keys have been pressed. |
#include "mex.h" | |
/* | |
* | |
* mex setField.c | |
* s = struct; | |
* wtf = setField(s,'wtf batman',5); | |
* | |
* %Override test | |
* wtf = setField(wtf,'wtf batman',1); |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "matrix.h" | |
#include "mex.h" | |
#include "jsmn.h" | |
// mex jsmn_mex.c jsmn.c |
import matplotlib.pyplot as plt | |
import h5py | |
import numpy as np | |
#SPEED_UP = 4 | |
#DT = 0.05 | |
file_path = u'F:/worm_data/segworm_data/features/798 JU258 on food R_2010_11_25__16_34_17___1___9_features.mat' | |
h = h5py.File(file_path, 'r') |
#ViewWormMovement | |
import matplotlib.pyplot as plt | |
import h5py | |
file_path = u'F:/worm_data/segworm_data/features/798 JU258 on food R_2010_11_25__16_34_17___1___9_features.mat' | |
h = h5py.File(file_path, 'r') | |
#dv - Distance Value |
try: | |
import cPickle as pickle | |
except: | |
import pickle | |
from ftplib import FTP | |
import re | |
import time #For modification time parsing | |
#For later |