In Matlab, there is not distinction between indexing and calling. Both are accomplished with parentheses.
a = 1:5
b = a(2:3) %indexing
function createCleanPreNormData() | |
% | |
% NOTE: We're starting with temporary files that were created by | |
% running the MRC GUI on a video | |
% | |
% This function should take the awkward file structures and output: | |
% - contours, non-normalized, oriented from head to tail | |
% - ??? a single contour with indices | |
% - left and right contours??? | |
% - in real units |
Anaconda | |
- https://store.continuum.io/cshop/anaconda/ | |
- version? - uninstall program - shows version 1.9.0 | |
conda update scipy | |
Wheel files: | |
Where is Python????? |
try: | |
import cPickle as pickle | |
except: | |
import pickle | |
from ftplib import FTP | |
import re | |
import time #For modification time parsing | |
#For later |
#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 |
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') |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "matrix.h" | |
#include "mex.h" | |
#include "jsmn.h" | |
// mex jsmn_mex.c jsmn.c |
#include "mex.h" | |
/* | |
* | |
* mex setField.c | |
* s = struct; | |
* wtf = setField(s,'wtf batman',5); | |
* | |
* %Override test | |
* wtf = setField(wtf,'wtf batman',1); |
This code listens for keys that have been pressed and calls a Matlab callback telling the callback what keys have been pressed. |
// gcc -std=c11 -mavx2 -o max_v2 max_v2.c | |
#include <immintrin.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <stdint.h> | |
int main() { | |