Skip to content

Instantly share code, notes, and snippets.

pkg load miscellaneous; % for chebyshevpoly
% LINEAR TIME
% samplerate
FS = 48000;
% length of the recording (+/- the stretch)
LENGTH = 50; % secs
intervals = repmat(1/FS, LENGTH * FS, 1);
linearTime = cumsum(intervals);
@pavhofman
pavhofman / testUndersampling.m
Created January 7, 2020 11:12
Plotting undersampled signals
pkg load signal;
FS = 48000;
MULTIPLE = 100;
CONT_FS = MULTIPLE * FS;
F = 20000; % 20kHz
tCont = transpose(0:1/CONT_FS:5 * 1/F);
@pavhofman
pavhofman / ChangeAtHeight.patch
Created April 2, 2018 09:05
ChangeAtHeight.py patch for raft support
diff ChangeAtHeight.py /home/pavel/Stažené/ChangeAtHeight.py
124c124
< m = re.search('^-?[0-9]+\.?[0-9]*', sub_part)
---
> m = re.search('^[0-9]+\.?[0-9]*', sub_part)
126c126
< m = re.search('^-?[0-9]*\.?[0-9]+', sub_part)
---
> m = re.search('^[0-9]*\.?[0-9]+', sub_part)
163d162