plateform
stringclasses
1 value
repo_name
stringlengths
13
113
name
stringlengths
3
74
ext
stringclasses
1 value
path
stringlengths
12
229
size
int64
23
843k
source_encoding
stringclasses
9 values
md5
stringlengths
32
32
text
stringlengths
23
843k
github
galdl/outage_scheduling-master
generalSCUC_noSUcost.m
.m
outage_scheduling-master/src/obsolete/generalSCUC_noSUcost.m
11,820
utf_8
86e4608054553ed5b5a422a696543fdc
%case5,case24_ieee_rts,case3012wp %When nargin>2 , this function is used for the dynamic myopic UC (horizon=1), %where we try to not deviate from the original onoff plan, and to have the %least deviation from the original Pg due to redispatch costs function [Pg,objective,onoff,y,demandVector]=generalSCUC(str,param...
github
galdl/outage_scheduling-master
ED.m
.m
outage_scheduling-master/src/obsolete/ED.m
2,457
utf_8
84715f14134a5b4b171e5da6705ad5f4
%solves ED function [Pg,objective,onoff] = ED(params) %% Data mpc=params.mpcase; mpc=ext2int(mpc); define_constants; %% data dimensions nb = size(mpc.bus, 1); %% number of buses nl = size(mpc.branch, 1); %% number of branches ng = size(mpc.gen, 1); %% number of dispatchable injections %% create (r...
github
galdl/outage_scheduling-master
escalateUC.m
.m
outage_scheduling-master/src/obsolete/escalateUC.m
1,857
utf_8
dcb3110ed0908d1d6edc2d997feed84f
%Currently this is run outside after decided not to follow original commitment %(dynamicUCParams.enforceOnoff=0), but doesn't have to be that way in the future function [Pg,objective,onoff,y,demandVector,state,escalateLevel,contingenciesHappened,windSpilled,loadLost] ... = escalateUC(params,state,dynamicUCParams,st...
github
kittenish/Speech-Recognition-for-Words-master
fxpefac.m
.m
Speech-Recognition-for-Words-master/matlab/voicebox/fxpefac.m
16,582
utf_8
bc97bb91f4c2005324552e77f6a6668b
function [fx,tx,pv,fv]=fxpefac(s,fs,tinc,m,pp) %FXPEFAC PEFAC pitch tracker [FX,TT,PV,FV]=(S,FS,TINC,M,PP) % % Input: s(ns) Speech signal % fs Sample frequency (Hz) % tinc Time increment between frames (s) [0.01] % or [start increment end] % m ...
github
kittenish/Speech-Recognition-for-Words-master
v_sigma.m
.m
Speech-Recognition-for-Words-master/matlab/voicebox/v_sigma.m
10,372
utf_8
2660ab5fa2b2eb9a54e841f242d824ae
function [gci goi] = v_sigma(lx,fs,fmax) % Singularity in EGG by Multiscale Analysis (SIGMA) Algorithm % % [gci goi] = v_sigma(lx,fs,fmax) % % Inputs: % lx Nx1 vector LX signal % fs Sampling freq (Hz) % fmax [Optional] max laryngeal freq % Outputs: % gci Vec...
github
kittenish/Speech-Recognition-for-Words-master
psycestu.m
.m
Speech-Recognition-for-Words-master/matlab/voicebox/psycestu.m
10,936
utf_8
864b16b08219e343380f846193aa22bc
function [xx,ii,m,v]=psycestu(iq,x,r,xp) % psycestu estimate unimodal psychometric function % % Usage: [xx,ii,m,v]=psycestu(-n,p,q,xp) % initialize n models % [xx,ii,m,v]=psycestu(i,x,r) % supply a trial result to psycest % psycestu(i) % plot pdf of model i % [p,...
github
kittenish/Speech-Recognition-for-Words-master
sphrharm.m
.m
Speech-Recognition-for-Words-master/matlab/voicebox/sphrharm.m
18,816
utf_8
c1510059959b50ebebc03dfe7d2b90b0
function [u,v,w]=sphrharm(m,a,b,c,d) %SPHRHARM forward and inverse spherical harmonic transform % % Usage: (1) y=('f',n,x) % Calculate complex transform of spatial data x up to order n % % (2) y=('fr',n,x) % Calculate real transform of spatial data x(ne,na) up to order n % ...
github
kittenish/Speech-Recognition-for-Words-master
fxrapt.m
.m
Speech-Recognition-for-Words-master/matlab/voicebox/fxrapt.m
16,903
utf_8
8c4746cf17de25af53f01a7219128ea4
function [fx,tt]=fxrapt(s,fs,mode) %FXRAPT RAPT pitch tracker [FX,VUV]=(S,FS) % % Input: s(ns) Speech signal % fs Sample frequency (Hz) % mode 'g' will plot a graph [default if no output arguments] % 'u' will include unvoiced fames (with fx=NaN) % % Out...
github
kittenish/Speech-Recognition-for-Words-master
estnoisem.m
.m
Speech-Recognition-for-Words-master/matlab/voicebox/estnoisem.m
16,236
utf_8
1454a42a47931cb92f98e1cbec70147c
function [x,zo,xs]=estnoisem(yf,tz,pp) %ESTNOISEM - estimate noise spectrum using minimum statistics % % Usage: ninc=round(0.016*fs); % frame increment [fs=sample frequency] % ovf=2; % overlap factor % f=rfft(enframe(s,hanning(ovf*ninc,'periodic'),ninc),ovf*ninc,2); % ...
github
jalayrac/instructionVideos-master
barwitherr.m
.m
instructionVideos-master/display_res/functions/barwitherr.m
6,062
utf_8
894962c3205f5ba925dd59c84274e516
%************************************************************************** % % This is a simple extension of the bar plot to include error bars. It % is called in exactly the same way as bar but with an extra input % parameter "errors" passed first. % % Parameters: % errors - the errors to be plotted (extra...
github
kristinbranson/BABAM-master
ComputeBehaviorAnatomyMap_Logic.m
.m
BABAM-master/ComputeBehaviorAnatomyMap_Logic.m
2,071
utf_8
32de7b85cc8d07399502ae2e1650ccd0
% res = ComputeBehaviorAnatomyMap_Logic(cmds,normbehaviordata_plus,normbehaviordata_minus,behaviorlabels,...) % res = ComputeBehaviorAnatomyMap_Logic(cmds,datafile) % res = ComputeBehaviorAnatomyMap_Logic(cmds) function res = ComputeBehaviorAnatomyMap_Logic(cmds,normbehaviordata_plus,varargin) res = []; if ~iscell(cm...
github
kristinbranson/BABAM-master
ExploreBehaviorAnatomyCorrelations.m
.m
BABAM-master/ExploreBehaviorAnatomyCorrelations.m
125,152
utf_8
6300b0f6c702164b595de9b7063ef33d
function varargout = ExploreBehaviorAnatomyCorrelations(varargin) % EXPLOREBEHAVIORANATOMYCORRELATIONS MATLAB code for ExploreBehaviorAnatomyCorrelations.fig % EXPLOREBEHAVIORANATOMYCORRELATIONS, by itself, creates a new EXPLOREBEHAVIORANATOMYCORRELATIONS or raises the existing % singleton*. % % H = EXPL...
github
kristinbranson/BABAM-master
colorspace.m
.m
BABAM-master/colorspace.m
13,590
utf_8
b1a9eb973fa39950345a1df707b5d2c8
function varargout = colorspace(Conversion,varargin) %COLORSPACE Convert a color image between color representations. % B = COLORSPACE(S,A) converts the color representation of image A % where S is a string specifying the conversion. S tells the % source and destination color spaces, S = 'dest<-src', or % alt...
github
kristinbranson/BABAM-master
createsubplots.m
.m
BABAM-master/createsubplots.m
1,353
utf_8
e993c747da9f0e2cc14bbefb24f754c3
% Usage: % h = createsubplots(nrows,ncols,border) % h = createsubplots(nrows,ncols,[borderx,bordery]) % h = createsubplots(nrows,ncols,[[sideborderx, middleborderx];[sidebordery, middlebordery]]) % h = createsubplots(...,[hfig]); function h = createsubplots(n1,n2,border,hfig) if nargin == 0, error('usage: createsubp...
github
kristinbranson/BABAM-master
colormap_image.m
.m
BABAM-master/colormap_image.m
591
utf_8
6d97a0e45bab4e2043ad69719ac46512
% Irgb = colormap_image(I,c,clim) function Irgb = colormap_image(I,c,clim) if nargin < 2 || isempty(c), c = colormap; end if nargin < 3 || isempty(clim), clim = nan(1,2); end if ndims(I) < 2 || ndims(I) > 3, error('input image must be N x M'); end; if isnan(clim(1)), a = min(I(:)); else a = clim(1); end if ...
github
kristinbranson/BABAM-master
fdr_bh.m
.m
BABAM-master/fdr_bh.m
6,394
utf_8
9088270c3e232ddc96b0e202921b22e0
% fdr_bh() - Executes the Benjamini & Hochberg (1995) and the Benjamini & % Yekutieli (2001) procedure for controlling the false discovery % rate (FDR) of a family of hypothesis tests. FDR is the expected % proportion of rejected hypotheses that are mistakenly rejected % (i...
github
kristinbranson/BABAM-master
RescaleToIndex.m
.m
BABAM-master/RescaleToIndex.m
202
utf_8
77dc5367cb572c5d4586a9b2357248f5
% idx = RescaleToIndex(x,n,l,u) function idx = RescaleToIndex(x,n,l,u) if nargin < 3, l = min(x(:)); end if nargin < 4, u = max(x(:)); end r = u-l; w = r/n; idx = max(1,min(floor((x-l)/w)+1,n));
github
aldebaro/dsp-telecom-book-code-master
ak_window4gui.m
.m
dsp-telecom-book-code-master/Applications/FFTLeakagePicketFenceEffects/ak_window4gui.m
12,904
utf_8
47be52f5e9a7038509f35fdedcc16d95
function varargout = ak_window4gui(varargin) % AK_WINDOW4GUI MATLAB code for ak_window4gui.fig % AK_WINDOW4GUI, by itself, creates a new AK_WINDOW4GUI or raises the existing % singleton*. % % H = AK_WINDOW4GUI returns the handle to a new AK_WINDOW4GUI or the handle to % the existing singleton*. % % ...
github
aldebaro/dsp-telecom-book-code-master
read_complex_binary.m
.m
dsp-telecom-book-code-master/Applications/GSM_PHY_Analysis/read_complex_binary.m
1,413
utf_8
429518949058aceb21de94e6f882c28b
% % Copyright 2001 Free Software Foundation, Inc. % % This file is part of GNU Radio % % GNU Radio is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2, or (at your option) % any later ve...
github
aldebaro/dsp-telecom-book-code-master
figs_fskapplication.m
.m
dsp-telecom-book-code-master/Applications/FSKSynchronous/figs_fskapplication.m
6,224
utf_8
023139a0e282bbe9a91c1a4d167be730
function figs_fskapplication %Generate figures for: %Simple script for (binary) FSK with synchronous demodulation. %The bit 0 is represented by f0 Hz and bit 1 by f1 Hz. %%%%%%%%%%%%%%%%%%% %Obtain the input bitstream inputBits %%%%%%%%%%%%%%%%%%% %use a binary image, with pixels represented by 0 or 1 inputIm...
github
aldebaro/dsp-telecom-book-code-master
ak_testBlockCodingRateDistortionCurve.m
.m
dsp-telecom-book-code-master/Applications/ECGTransformCoding/ak_testBlockCodingRateDistortionCurve.m
2,324
utf_8
d8aa6d42e7837659f863519ca4be0b29
%simple function to provide example of building a rate distortion curve function [h,signalPower]=ak_testBlockCodingRateDistortionCurve(M) %M= is the transform dimension %build a linear transform. Note: the columns of A are the basis %functions. I will choose functions that are smooth and others "nervous" if 1 %cho...
github
aldebaro/dsp-telecom-book-code-master
figs_digicomm_isi.m
.m
dsp-telecom-book-code-master/MatlabBookFigures/figs_digicomm_isi.m
3,824
utf_8
e4caccfccc0934ed855ecce0f7a0102a
function figs_digicomm_isi clf h=fir1(10,0.8); epsName = 'compensatingFIRChannel'; exampleOfISI(h, 1, epsName) [B,A]=butter(5,0.8); epsName = 'compensatingButterworthChannel'; exampleOfISI(B, A, epsName) exampleOfISIForSimpleFilter; matchedFilterWithISI h=[0.3 -0.4 0.5 0.8 0.5 -0.4 0.3]; epsName='g...
github
aldebaro/dsp-telecom-book-code-master
figs_systems_roundoffErrors.m
.m
dsp-telecom-book-code-master/MatlabBookFigures/figs_systems_roundoffErrors.m
2,453
utf_8
53a77c3f13da3a33739c3ac3c7418cd1
function [yq_my, y_my, y_matlab]=figs_systems_roundoffErrors % function [yq_my, y_my, y_matlab]=figs_systems_roundoffErrors randn('seed',0); %reset seed of randn N=30; %number of samples x=7*randn(1,N); %generate N random samples y=zeros(size(x)); %pre-allocate space for output M=4; %filter order [B,A]=butter(M,...
github
aldebaro/dsp-telecom-book-code-master
figs_transforms_dtfs_pulse.m
.m
dsp-telecom-book-code-master/MatlabBookFigures/figs_transforms_dtfs_pulse.m
1,976
utf_8
4e3fe0019584a179c59f1cc6d73fc351
function figs_transforms_dtfs_pulse close all N=20; N1=10; %is the period and N1 the duty cicle plotPulseDTFSWithPhase(N, N1); writeEPS('dtfs_pulse','font12Only'); N=20; N1=1; %is the period and N1 the duty cicle plotPulseDTFS(N, N1); writeEPS('dtfs_pulse_duty_1','font12Only'); N=20; N1=2; %is the period ...
github
aldebaro/dsp-telecom-book-code-master
figs_transforms_dft.m
.m
dsp-telecom-book-code-master/MatlabBookFigures/figs_transforms_dft.m
5,785
utf_8
9ec03682b2ec16a95695713fe6e09d97
function figs_transforms_dft %using orthonormal DFT clf N=32; [Ah,A]=ak_fftmtx(N,2); %DTFS as in fft/N n=0:N-1; k=n; %define k to make more clear when it is k and when it is n x1=10*cos(2*pi*0/32*n); %first signal: DC X1=Ah*transpose(x1); subplot(521); stem(n,x1); ylabel('x_0[n]'); axis([0 31 0 11]); subplot...
github
aldebaro/dsp-telecom-book-code-master
figs_app_plot_qvalues.m
.m
dsp-telecom-book-code-master/MatlabBookFigures/figs_app_plot_qvalues.m
728
utf_8
186abb4005f96b5161fa6b52106f7f12
function figs_app_plot_qvalues % show Q values clf onePlot(-10, 0, 1, 0); title('Very low SNR Q-function values'); writeEPS('qfunc_verylowsnr'); onePlot(0, 10, 1, 1); title('Low SNR Q-function values'); writeEPS('qfunc_lowsnr'); onePlot(10, 20, 1, 1); title('High SNR Q-function values'); writeEPS('qfunc_...
github
aldebaro/dsp-telecom-book-code-master
figs_systems_system_identification.m
.m
dsp-telecom-book-code-master/MatlabBookFigures/figs_systems_system_identification.m
2,583
utf_8
cca19e86896613ae01e6f13905c6b6fa
function figs_systems_system_identification() clear all rand('seed',0); randn('seed',52); %52 was found after trial and error, do not mess up %% Option with preamble of 63 training samples and SNR=20 dB inputLengthLog2=6; inputSequenceChoice=3; SNRdB = 20; plot_3_estimates(inputLengthLog2,inputSequenceChoice,SNR...
github
aldebaro/dsp-telecom-book-code-master
figs_digicomm_regeneration.m
.m
dsp-telecom-book-code-master/MatlabBookFigures/figs_digicomm_regeneration.m
1,328
utf_8
78496eccf0f99ebaeb13810d931c3bcb
function figs_digicomm_regeneration clear all; clf rand('state',0); %reset the seed to reproduce sequences RSRdB=3; %RSR = 3 dB plotForGivenSNR(RSRdB,'regeneration_snr_plus3') RSRdB=-3; %RSR = -3 dB plotForGivenSNR(RSRdB,'regeneration_snr_minus3') return %properly finish the main function (not a mistake here) ...
github
aldebaro/dsp-telecom-book-code-master
figs_signals_correlationcoeff.m
.m
dsp-telecom-book-code-master/MatlabBookFigures/figs_signals_correlationcoeff.m
1,461
utf_8
77b5715281aa82dac6a21f573f33b9d8
function figs_signals_correlationcoeff clf randn('seed',1); subplot(311) %generate N two-dimensional Gaussian vectors C=[4 0;0 1]; %covariance matrix mu=[30 6]; %mean plotOneGaussian(mu,C); text(23,8,'product A') %legend('product A') subplot(312) C=[4 0.99;0.99 1]; %covariance matrix mu=[30 12]; %mean ...
github
aldebaro/dsp-telecom-book-code-master
figs_synchronism_carrier_recovery.m
.m
dsp-telecom-book-code-master/MatlabBookFigures/figs_synchronism_carrier_recovery.m
5,356
utf_8
e912aef39742ba36eb4d19aca924d8c8
function figs_synchronism_carrier_recovery() % Repeatedly invokes part of script ex_fftBasedQAMCarrierRecovery.m % to plot a figure. N=6; %number of points to be calculated minus 3 zz=linspace(-pi/4,pi/4-(1e-2),N); %range [-pi/4, pi/4[ zz=sort([zz -1e-2 1e-2 0]); %add points close to singularity at zero N=N+3; %u...
github
aldebaro/dsp-telecom-book-code-master
figs_digicomm_awgnReceiver.m
.m
dsp-telecom-book-code-master/MatlabBookFigures/figs_digicomm_awgnReceiver.m
8,220
utf_8
3cb32d3ad9ca23d8680d3971539d1e71
function figs_digicomm_awgnReceiver %use as function to allow subfunction clear all close all randn('state',0); rand('state',0); %reset both generators numberOfBytes=200; oversample = 8; %number of samples per symbol M=4; %modulation order (number of symbols) N=40; %number of SNR grid noisePowers=logspace(-2,...
github
aldebaro/dsp-telecom-book-code-master
figs_channel_isi.m
.m
dsp-telecom-book-code-master/MatlabBookFigures/figs_channel_isi.m
3,234
utf_8
856fcbfe3a8cce76889b7f2fde09cf4b
function figs_channel_isi clear all close all symbols=[3 -3 -3 3 1 -1]; %PAM symbols L=100; %oversampling factor, an even number, large to mimic continuous-time delay = 7; %group delay in symbols (# of samples is delay*L) N0 = delay*L+1; %cursor: sample to start obtaining the symbols %% First case: pulse p=[zer...
github
aldebaro/dsp-telecom-book-code-master
figs_digicomm_isi2.m
.m
dsp-telecom-book-code-master/MatlabBookFigures/figs_digicomm_isi2.m
2,478
utf_8
0ed47e5e0c0b5682e9e5f0f74d61ae40
function figs_digicomm_isi2 clf symbols=[3 -1 3 1]; %symbols used for all plots %First pulse N0 = 1; %sample to start obtaining the symbols p=[1 1 1 1]; %shaping pulse L=4; %oversampling factor ak_plotNyquistPulse(p,L) %graphs in frequency domain writeEPS('pulse1_spectrum'); [isi,signalParcels] = ak_calculat...
github
aldebaro/dsp-telecom-book-code-master
testfixed.m
.m
dsp-telecom-book-code-master/OctaveOnly/testfixed.m
1,661
utf_8
32966fc6ae25e9ae8a40e6222b1f23b4
function [y_cq_iq_pq, y_my, y_matlab]=testfixed % function [y_cq_iq_pq, y_my, y_matlab]=testfixed randn('seed',0); %reset seed of randn N=100; %number of samples x=randn(1,N); %generate N random samples y=zeros(size(x)); %pre-allocate space for output M=4; %filter order [B,A]=butter(M,0.3); %design IIR filter i...
github
aldebaro/dsp-telecom-book-code-master
arrow.m
.m
dsp-telecom-book-code-master/MatlabOnlyThirdPartyFunctions/arrow.m
59,729
utf_8
986bc32a934bac3ea5df6d9888832784
function [h,yy,zz] = arrow(varargin) %Modified by AK on 2021 Jan, according to: %https://www.mathworks.com/matlabcentral/fileexchange/278-arrow % ARROW Draw a line with an arrowhead. % % ARROW(Start,Stop) draws a line with an arrow from Start to Stop (points % should be vectors of length 2 or 3, or matrices wi...
github
aldebaro/dsp-telecom-book-code-master
exportfig.m
.m
dsp-telecom-book-code-master/MatlabOnlyThirdPartyFunctions/exportfig.m
15,495
utf_8
a5eac254c0f3a77d3e571e7315b0858c
function exportfig(varargin) %EXPORTFIG Export a figure to Encapsulated Postscript. % EXPORTFIG(H, FILENAME) writes the figure H to FILENAME. H is % a figure handle and FILENAME is a string that specifies the % name of the output file. % % EXPORTFIG(...,PARAM1,VAL1,PARAM2,VAL2,...) specifies % parame...
github
aldebaro/dsp-telecom-book-code-master
dctCompressionExample_v5.m
.m
dsp-telecom-book-code-master/MatlabOnlyThirdPartyFunctions/dctCompressionExample_v5.m
4,524
utf_8
213ca1c9aa336c25f40cf8f024456ef8
% Example app for http://blogs.mathworks.com/steve % % Steve Eddins % Copyright 2013 The MathWorks, Inc. classdef dctCompressionExample_v5 < handle properties (SetAccess = private) OriginalImage ReconstructedImage ErrorImage DCTCoefficientMask end pro...
github
aldebaro/dsp-telecom-book-code-master
pdftops.m
.m
dsp-telecom-book-code-master/MatlabOnlyThirdPartyFunctions/exportfig/pdftops.m
3,260
utf_8
1546a66ebea7d7bf2617cc345690bf62
function varargout = pdftops(cmd) %PDFTOPS Calls a local pdftops executable with the input command % % Example: % [status result] = pdftops(cmd) % % Attempts to locate a pdftops executable, finally asking the user to % specify the directory pdftops was installed into. The resulting path is % stored for futur...
github
aldebaro/dsp-telecom-book-code-master
pdf2eps.m
.m
dsp-telecom-book-code-master/MatlabOnlyThirdPartyFunctions/exportfig/pdf2eps.m
1,673
utf_8
32d601934f608dcc6d7b4b902e4f6de8
%PDF2EPS Convert a pdf file to eps format using pdftops % % Examples: % pdf2eps source dest % % This function converts a pdf file to eps format. % % This function requires that you have pdftops, from the Xpdf suite of % functions, installed on your system. This can be downloaded from: % http://www.foolabs.c...
github
aldebaro/dsp-telecom-book-code-master
print2array.m
.m
dsp-telecom-book-code-master/MatlabOnlyThirdPartyFunctions/exportfig/print2array.m
3,492
utf_8
cb0267850dc848cc635efc474a52e5d8
%PRINT2ARRAY Exports a figure to an image array % % Examples: % A = print2array % A = print2array(figure_handle) % A = print2array(figure_handle, resolution) % A = print2array(figure_handle, resolution, renderer) % % This function outputs a bitmap image of the given figure, at the desired % resolution...
github
aldebaro/dsp-telecom-book-code-master
change_value.m
.m
dsp-telecom-book-code-master/MatlabOnlyThirdPartyFunctions/exportfig/change_value.m
1,904
utf_8
6d0d132aed5e02b251b9c3c35f9b75fd
%CHANGE_VALUE Change the value assigned to a unique variable in a file % % Examples: % fail = change_value(value) % fail = change_value(value, variableName) % fail = change_value(value, variableName, filePath) % % Function to change the value assigned to a variable in a text file. The % assignment must exist alr...
github
aldebaro/dsp-telecom-book-code-master
eps2pdf.m
.m
dsp-telecom-book-code-master/MatlabOnlyThirdPartyFunctions/exportfig/eps2pdf.m
4,075
utf_8
3d1da96cebe971a0a67ababca7cfec66
%EPS2PDF Convert an eps file to pdf format using ghostscript % % Examples: % eps2pdf source dest % eps2pdf(source, dest, crop) % eps2pdf(source, dest, crop, append) % eps2pdf(source, dest, crop, append, gray) % eps2pdf(source, dest, crop, append, gray, quality) % % This function converts an eps file...
github
aldebaro/dsp-telecom-book-code-master
export_fig.m
.m
dsp-telecom-book-code-master/MatlabOnlyThirdPartyFunctions/exportfig/export_fig.m
26,593
utf_8
2350ff7502e249ea1347b5ec425f9ad5
%EXPORT_FIG Exports figures suitable for publication % % Examples: % im = export_fig % [im alpha] = export_fig % export_fig filename % export_fig filename -format1 -format2 % export_fig ... -nocrop % export_fig ... -native % export_fig ... -m<val> % export_fig ... -r<val> % export_fig ... ...
github
aldebaro/dsp-telecom-book-code-master
ghostscript.m
.m
dsp-telecom-book-code-master/MatlabOnlyThirdPartyFunctions/exportfig/ghostscript.m
3,671
utf_8
f025d6d210dc48067b0482e9bdab6d79
function varargout = ghostscript(cmd) %GHOSTSCRIPT Calls a local GhostScript executable with the input command % % Example: % [status result] = ghostscript(cmd) % % Attempts to locate a ghostscript executable, finally asking the user to % specify the directory ghostcript was installed into. The resulting path...
github
aldebaro/dsp-telecom-book-code-master
print2eps.m
.m
dsp-telecom-book-code-master/MatlabOnlyThirdPartyFunctions/exportfig/print2eps.m
1,846
utf_8
b35c00359f5f3745c0ab843d7ed7e269
%PRINT2EPS Prints figures to eps with improved line styles % % Examples: % print2eps filename % print2eps(filename, fig_handle) % print2eps(filename, fig_handle, options) % % This function saves a figure as an eps file, and improves the line style, % making dashed lines more like those on screen and givi...
github
aldebaro/dsp-telecom-book-code-master
snip_frequency_fftCosineExample.m
.m
dsp-telecom-book-code-master/MatlabOctaveCodeSnippets/snip_frequency_fftCosineExample.m
1,154
utf_8
9cf6cc716c0de166ccaf090aba80838d
function snip_frequency_fftCosineExample() clf, N=32; A=6; %clear figure, FFT length, cosine amplitude M=1000; %number of sample points imposing the DTFT resolution alpha=8.3; %specifies the cosine frequency Wc=(alpha*2*pi)/N; %cosine frequency in radians W=linspace(0,2*pi,M); %frequency range Xw=zeros(1,M); %DTF...
github
aldebaro/dsp-telecom-book-code-master
snip_frequency_testHannDTFT.m
.m
dsp-telecom-book-code-master/MatlabOctaveCodeSnippets/snip_frequency_testHannDTFT.m
451
utf_8
17cb506acd2d079a3ef86c0640a045d6
function snip_frequency_testHannDTFT N=9; %number of window samples [dtftHann,w]=freqz(hann(N)); %get values of the DTFT as reference dtftHann2=0.5*rectWinDTFT(w,N)- 0.25*rectWinDTFT(w+(2*pi/(N-1)),N)... -0.25*rectWinDTFT(w-(2*pi/(N-1)),N); %DTFT using expression plot(w,real(dtftHann-dtftHann2),w,imag(dtftHann-dtft...
github
aldebaro/dsp-telecom-book-code-master
octave_discrete_pdf.m
.m
dsp-telecom-book-code-master/MatlabOctaveThirdPartyFunctions/octave_discrete_pdf.m
1,889
utf_8
d27c273e0aa11d797be6b8629ae431bd
% Copyright (C) 1996, 1997, 1998, 2000, 2002, 2004, 2005, 2006, 2007 % Kurt Hornik % % This file is part of Octave. % % Octave is free software; you can redistribute it and/or modify it % under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 3 of ...
github
aldebaro/dsp-telecom-book-code-master
octave_normcdf.m
.m
dsp-telecom-book-code-master/MatlabOctaveThirdPartyFunctions/octave_normcdf.m
2,033
utf_8
33f0220f4099374be8072bbc539a501f
% Copyright (C) 1995, 1996, 1997, 2005, 2006, 2007 Kurt Hornik % % This file is part of Octave. % % Octave is free software; you can redistribute it and/or modify it % under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 3 of the License, or (at % your option)...
github
aldebaro/dsp-telecom-book-code-master
octave_stdnormal_pdf.m
.m
dsp-telecom-book-code-master/MatlabOctaveThirdPartyFunctions/octave_stdnormal_pdf.m
1,372
utf_8
013dcbed10b1ef82a8dd459f3ba74750
% Copyright (C) 1995, 1996, 1997, 1998, 2000, 2002, 2004, 2005, 2006, % 2007 Kurt Hornik % % This file is part of Octave. % % Octave is free software; you can redistribute it and/or modify it % under the terms of the GNU General Public License as published by % the Free Software Foundation; either version...
github
aldebaro/dsp-telecom-book-code-master
octave_mvnrnd.m
.m
dsp-telecom-book-code-master/MatlabOctaveThirdPartyFunctions/octave_mvnrnd.m
3,715
utf_8
4c3f5a480fcc8627e649e730af64db94
% Copyright (C) 2003 Iain Murray % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2 of the License, or % (at your option) any later version. % % This program is distributed in th...
github
aldebaro/dsp-telecom-book-code-master
octave_normrnd.m
.m
dsp-telecom-book-code-master/MatlabOctaveThirdPartyFunctions/octave_normrnd.m
2,912
utf_8
9ee106564256bf359279db00c2c8b367
% Copyright (C) 1995, 1996, 1997, 2005, 2006, 2007 Kurt Hornik % % This file is part of Octave. % % Octave is free software; you can redistribute it and/or modify it % under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 3 of the License, or (at % your option)...
github
aldebaro/dsp-telecom-book-code-master
octave_unidpdf.m
.m
dsp-telecom-book-code-master/MatlabOctaveThirdPartyFunctions/octave_unidpdf.m
1,197
utf_8
9e854f700ade6f3fe57a2c0adca6b9fa
% Copyright (C) 2007 David Bateman % % This file is part of Octave. % % Octave is free software; you can redistribute it and/or modify it % under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 3 of the License, or (at % your option) any later version. % % Octa...
github
aldebaro/dsp-telecom-book-code-master
octave_dct2.m
.m
dsp-telecom-book-code-master/MatlabOctaveThirdPartyFunctions/octave_dct2.m
1,269
utf_8
3eb4cb32f308600a79ccd4dfa84c46b0
% Copyright (C) 2001 Paul Kienzle % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2 of the License, or % (at your option) any later version. % % This program is distributed in t...
github
aldebaro/dsp-telecom-book-code-master
octave_unifpdf.m
.m
dsp-telecom-book-code-master/MatlabOctaveThirdPartyFunctions/octave_unifpdf.m
1,697
utf_8
e017f21576413b34b0dcaf9351cff1ab
% Copyright (C) 1995, 1996, 1997, 2005, 2006, 2007 Kurt Hornik % % This file is part of Octave. % % Octave is free software; you can redistribute it and/or modify it % under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 3 of the License, or (at % your option)...
github
aldebaro/dsp-telecom-book-code-master
line_fewer_markers.m
.m
dsp-telecom-book-code-master/MatlabOctaveThirdPartyFunctions/line_fewer_markers.m
11,384
utf_8
659d6d20375d9bce98bba3352cf1ad58
% line_fewer_markers - line with controlled amount of markers and correct legend behaviour % % LINE_FEWER_MARKERS(X,Y,NUM_MARKERS) adds the line in vectors X and Y to the current axes % with exactly NUM_MARKERS markers drawn. % % LINE_FEWER_MARKERS(X,Y,NUM_MARKERS,'PropertyName',PropertyValue,...) plots th...
github
aldebaro/dsp-telecom-book-code-master
octave_stdnormal_cdf.m
.m
dsp-telecom-book-code-master/MatlabOctaveThirdPartyFunctions/octave_stdnormal_cdf.m
1,285
utf_8
bc8f0910ea6891d3d92c68e4623ecb50
% Copyright (C) 1995, 1996, 1997, 1998, 2000, 2002, 2004, 2005, 2006, % 2007 Kurt Hornik % % This file is part of Octave. % % Octave is free software; you can redistribute it and/or modify it % under the terms of the GNU General Public License as published by % the Free Software Foundation; either version...
github
aldebaro/dsp-telecom-book-code-master
octave_dctmtx.m
.m
dsp-telecom-book-code-master/MatlabOctaveThirdPartyFunctions/octave_dctmtx.m
1,598
utf_8
93cc562b28ec7fc32fc41bce422b855d
%Copyright (C) 2001 Paul Kienzle % %This program is free software; you can redistribute it and/or modify %it under the terms of the GNU General Public License as published by %the Free Software Foundation; either version 2 of the License, or %(at your option) any later version. % %This program is distributed in the hop...
github
aldebaro/dsp-telecom-book-code-master
octave_idct2.m
.m
dsp-telecom-book-code-master/MatlabOctaveThirdPartyFunctions/octave_idct2.m
1,297
utf_8
decd682c0b61ecc66a90b41e568f43a7
% Copyright (C) 2001 Paul Kienzle % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2 of the License, or % (at your option) any later version. % % This program is distributed in t...
github
aldebaro/dsp-telecom-book-code-master
octave_normpdf.m
.m
dsp-telecom-book-code-master/MatlabOctaveThirdPartyFunctions/octave_normpdf.m
2,075
utf_8
2e725369bc97bbeb2a5ba14616f084b6
% Copyright (C) 1995, 1996, 1997, 2005, 2006, 2007 Kurt Hornik % % This file is part of Octave. % % Octave is free software; you can redistribute it and/or modify it % under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 3 of the License, or (at % your option)...
github
aldebaro/dsp-telecom-book-code-master
ak_showQfactors.m
.m
dsp-telecom-book-code-master/MatlabOctaveFunctions/ak_showQfactors.m
1,072
utf_8
432373b01d8920fc437000a73b7eb0d6
function ak_showQfactors N=6; %order of filter Wc=100; %cutoff frequency disp('- Butterworth filter:'); [z,p,k]=butter(N,Wc,'s'); %design Butterworth calculateQfactors(p) %calculate and display Q-factors disp('- Chebyshev 1 filter:'); Rp=1; %maximum ripple at passband [z,p,k]=cheby1(N,Rp,Wc,'s'); %design Chebys...
github
aldebaro/dsp-telecom-book-code-master
ak_drawvector_new.m
.m
dsp-telecom-book-code-master/MatlabOctaveFunctions/ak_drawvector_new.m
4,342
utf_8
859c62fec23565b1bea8ebbee533bce8
%AK, Jan 2016: %could not make this function work, because when I expand axis, %the previous vectors are modified wrongly. function [ann_handle,figx,figy,orix,oriy]=ak_drawvector(x1,y1,xo,yo) %function [ann_handle,figx,figy,orix,oriy]=ak_drawvector(x1,y1,xo,yo) %Draws an arrow. Examples (all are equivalent for dra...
github
aldebaro/dsp-telecom-book-code-master
ak_find3dBBandwidth.m
.m
dsp-telecom-book-code-master/MatlabOctaveFunctions/ak_find3dBBandwidth.m
558
utf_8
550793490b85ee92cb4eae044ce05910
function bw_indices=ak_find3dBBandwidth(psddB, tolerance) % function bw_indices=ak_find3dBBandwidth(psddB,tolerance) if nargin == 1 tolerance = eps end reference = max(psddB) - 3.0103; %we would like to use %bw_indices = find(psddB == reference); %but the exact value may not be part of psd_dB, so bw_ind...
github
aldebaro/dsp-telecom-book-code-master
ak_map_z_into_s.m
.m
dsp-telecom-book-code-master/MatlabOctaveFunctions/ak_map_z_into_s.m
1,169
utf_8
2c069430d2e75bd9244879e5591b12fb
function s_plane_points=ak_map_z_into_s(z_plane_points,Fs) z_plane_points = transpose(z_plane_points(:)); %make it a row vector N=length(z_plane_points); s_plane_points = zeros(1,N); for i=1:N %for each z find corresponding s using bilinear transformation %use bilinear transformation s_plane_points(i)=(2*Fs...
github
aldebaro/dsp-telecom-book-code-master
ak_map_s_into_z.m
.m
dsp-telecom-book-code-master/MatlabOctaveFunctions/ak_map_s_into_z.m
1,146
utf_8
d1d0ef88411b1cda379859b2b8c68ea6
function z_plane_points=ak_map_s_into_z(s_plane_points,Fs) s_plane_points = transpose(s_plane_points(:)); %make it a row vector N=length(s_plane_points); z_plane_points = zeros(1,N); Ts=1/Fs; for i=1:N %for each s find corresponding z using bilinear transformation z_plane_points(i)=((2+Ts*s_plane_points(i)))./(...
github
aldebaro/dsp-telecom-book-code-master
ak_drawvector.m
.m
dsp-telecom-book-code-master/MatlabOctaveFunctions/ak_drawvector.m
4,425
utf_8
2d78e05f8f53092aeee017f32f653719
function [ann_handle,figx,figy,orix,oriy]=ak_drawvector(x1,y1,xo,yo) %function [ann_handle,figx,figy,orix,oriy]=ak_drawvector(x1,y1,xo,yo) %Draws an arrow. Examples (all are equivalent for drawing a vector %from point (0,0) to (2,1): %ak_drawvector(2+j) %ak_drawvector(2,1) %ak_drawvector([2,1]) %ak_drawvector([2...
github
aldebaro/dsp-telecom-book-code-master
ak_plotNyquistPulse.m
.m
dsp-telecom-book-code-master/MatlabOctaveFunctions/ak_plotNyquistPulse.m
1,660
utf_8
616b7054925b45813f2c8be052caf8da
function ak_plotNyquistPulse(p,L) % function ak_plotNyquistPulse(p,L) %Inputs: p is the pulse (typically a zero ISI pulse) % L is the oversampling factor clf N=2^16; %number of FFT points. Use large to approximate... P=fft(p,N); %the DTFT using the FFT dw=2*pi/N; %frequency interval em rads w=0:dw:2*pi...
github
deepanprabhu/deep-belief-networks-master
process_options.m
.m
deep-belief-networks-master/RBM/process_options.m
3,819
utf_8
66887446ed8232aa6191418602f9ade5
%% Process named arguments to a function % % This allows you to pass in arguments using name, value pairs % eg func(x, y, 'u', 0, 'v', 1) % Or you can pass in a struct with named fields % eg S.u = 0; S.v = 1; func(x, y, S) % % Usage: [var1, var2, ..., varn[, unused]] = ... % process_options(args, ... % ...
github
jussitohka/general_matlab-master
gaussian3dfil_roi.m
.m
general_matlab-master/gaussian3dfil_roi.m
1,880
utf_8
e4efa3aef90916c4959ba53baed3ab8c
% Performs Gaussian 3D filtering, limited by a ROI (or VOI) % returns filtered values only in the volume specified by the ROI % (C) Jussi Tohka % Department of Signal Processing, % Tampere University of Technology, Finland % The method is described in % J. Tohka. Volume of interest (VOI) limited linear filtering. % h...
github
jussitohka/general_matlab-master
nihpd_bs_ci_mae.m
.m
general_matlab-master/nihpd_bs_ci_mae.m
1,307
utf_8
dae64405643dec134ade37cd21cd64ab
% (C) Jussi Tohka % University of Eastern Finland, Finland % jussi.tohka@uef.fi % To compute confidence intervals based on bootstrap in the repeated % cross-validation setting % yhat is n x r matrix of predicted values, where n is the number os % subjects and r is the number of CV runs % y (n x 1) is the vector...
github
jussitohka/general_matlab-master
balanced_crossval.m
.m
general_matlab-master/balanced_crossval.m
3,299
utf_8
4c3985f2532008f386cdfd53a52dcb6a
% Generating balanced cross validation folds for regression % (C) Jussi Tohka 2014 - 2016 % Tampere University of Technology, Finland (2014 - 2015) % Universidad Carlos III de Madrid, Spain (2015 - 2016) % -------------------------------------------------------------- % Permission to use, copy, modify, and distribute t...
github
jussitohka/general_matlab-master
nihpd_permutation_test.m
.m
general_matlab-master/nihpd_permutation_test.m
1,249
utf_8
c2b832463ce223ba07448b9326a03570
% (C) Jussi Tohka % University of Eastern Finland, Finland % jussi.tohka@uef.fi % Described in % J.D. Lewis, A.C- Evans, J. Tohka . T1 white/gray contrast as a predictor % of chronological age, and an index of cognitive performance. NeuroImage, 2018 function p = nihpd_permutation_test(yhat,yhat2,y,nboot) % yhat...
github
Schwartz-AlaLaurila-Labs/sa-labs-extension-master
generateShapeStimulus.m
.m
sa-labs-extension-master/src/main/matlab/+sa_labs/+util/+shape/generateShapeStimulus.m
14,780
utf_8
b8874c0abe8e797492ad143b81243623
function runConfig = generateShapeStimulus(p, analysisData) runConfig = struct(); runConfig.autoContinueRun = false; % select the type of epoch to run based on params & results if strcmp(p.mode, 'temporalAlignment') runConfig = generateTemporalAlignment(p, runConfig); elseif ...
github
Schwartz-AlaLaurila-Labs/sa-labs-extension-master
simulateSpikeTrain.m
.m
sa-labs-extension-master/src/main/matlab/+sa_labs/+util/+shape/simulateSpikeTrain.m
2,217
utf_8
ccd5c203754cab6eb2b8928029c16ce7
function spikes = simulateSpikeTrain(sd) % shapeDataMatrix % shapeDataColumns center = [0,0]; width = 70; baseFiringRate = 200; % Hz baseDiameter = 30; col_x = sd.shapeDataColumns('X'); col_y = sd.shapeDataColumns('Y'); col_intensity = sd.shapeDataColumns('intensity'); col_startTime = sd.shapeDataColumns('startTime'...
github
Schwartz-AlaLaurila-Labs/sa-labs-extension-master
BackgroundControl.m
.m
sa-labs-extension-master/src/main/matlab/+sa_labs/+modules/BackgroundControl.m
3,626
utf_8
7c7b2532777b47acf8c000db2f62b7db
classdef BackgroundControl < symphonyui.ui.Module properties (Access = private) devices deviceListeners deviceGrid end methods function createUi(obj, figureHandle) import appbox.*; set(figureHandle, ... '...
github
sh01k/WFRfilter-master
sph_harm_mat.m
.m
WFRfilter-master/lib/sph_harm_mat.m
839
utf_8
87e6fa53bfced963c7a0a9550198ef31
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (c) Shoichi Koyama 2015.07.31 % Generate matrix of spherical harmonic functions % USAGE "sph_harm_mat(Nmax,theta,phi)" % INPUT % Nmax Maximum order % theta Zenith angle % phi Azimuth angle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
github
sh01k/WFRfilter-master
green3d.m
.m
WFRfilter-master/lib/green3d.m
537
utf_8
ad901ef47b20baa27627b53908027ee9
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (c) Shoichi Koyama (koyama.shoichi@ieee.org) 2016.09.01 % % 3D free-field Green's function % USAGE "green3d(xr,yr,zr,xs,ys,zs,k)" % INPUT % xr, yr, zr Reference positions % xs, ys, zs Source positions % k Wave number %%...
github
sh01k/WFRfilter-master
sph_besselh.m
.m
WFRfilter-master/lib/sph_besselh.m
276
utf_8
40f29a156f9096a6ed04d1065097a8a4
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (c) Shoichi Koyama (koyama.shoichi@ieee.org) 2016.09.02 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function [Z] = sph_besselh(N,K,X) Z = sqrt(pi/(2*X)).*besselh(N+0.5,K,X); end
github
sh01k/WFRfilter-master
sph_besselj_diff.m
.m
WFRfilter-master/lib/sph_besselj_diff.m
303
utf_8
afd7fbead50dab22aed3942aaf57e216
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (c) Shoichi Koyama (koyama.shoichi@ieee.org) 2016.09.02 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function [Z] = sph_besselj_diff(N,X) Z = (N.*sph_besselj(N-1,X)-(N+1).*sph_besselj(N+1,X))./(2*N+1); end
github
sh01k/WFRfilter-master
fig_dist.m
.m
WFRfilter-master/lib/fig_dist.m
1,258
utf_8
009b245c42e90b10f2a93bdf324f0165
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (c) Shoichi Koyama (koyama.shoichi@ieee.org) 2016.09.01 % % Draw pressure distribution % USAGE "fig_dist(h,pos,X,Y,D,prm,plt_x,plt_y)" % INPUT % h Figure handler % pos Figure position % X, Y Grid on x and y axes % ...
github
sh01k/WFRfilter-master
sph_besselh_diff.m
.m
WFRfilter-master/lib/sph_besselh_diff.m
309
utf_8
f565b97d667a43102464dbcb5df235d3
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (c) Shoichi Koyama (koyama.shoichi@ieee.org) 2016.09.02 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function [Z] = sph_besselh_diff(N,K,X) Z = (N.*sph_besselh(N-1,K,X)-(N+1).*sph_besselh(N+1,K,X))./(2*N+1); end
github
sh01k/WFRfilter-master
sph_besselj.m
.m
WFRfilter-master/lib/sph_besselj.m
272
utf_8
1720ebc0f4713af9b1b88663db17ef6b
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (c) Shoichi Koyama (koyama.shoichi@ieee.org) 2016.09.02 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function [Z] = sph_besselj(N,X) Z = sqrt(pi/(2*X)).*besselj(N+0.5,X); end
github
sh01k/WFRfilter-master
fig_contour.m
.m
WFRfilter-master/lib/fig_contour.m
1,335
utf_8
018cc676a202b7a5f0a2fba183197197
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (c) Shoichi Koyama (koyama.shoichi@ieee.org) 2016.09.01 % % Draw pressure distribution % USAGE "fig_dist(h,X,Y,D,prm,plt_x,plt_y)" % INPUT % h Figure handler % pos Figure position % X, Y Grid on x and y axes % D ...
github
C2SM-RCM/lagranto.ecmwf-master
plot_trajectory.m
.m
lagranto.ecmwf-master/figure/matlab/plot_trajectory.m
7,907
utf_8
c436a10dda1d9d6d1dc6368537374d7e
% ---------------------------------------------------------------------- % Plotting of a set of trajectory, coloring with additional field % ---------------------------------------------------------------------- function plot = plot_trajectory (tra,varargin) % Set plotting mode mode=3; % Handle the input arguments i...
github
C2SM-RCM/lagranto.ecmwf-master
col_scale.m
.m
lagranto.ecmwf-master/figure/matlab/col_scale.m
778
utf_8
6a46cad96e57c00be9dd5f3dcb47178d
function c_map = col_scale (dat_values,d_map); % Handling of irregularly spaced color tables % Init the label strings and output values for i=1:length(dat_values) c_map.label(i) = cellstr(num2str(dat_values(i))); end c_map.values=dat_values; c_map.xtick=linspace(0,1,length(dat_values)); c_map.caxis=[ min(c_map....
github
C2SM-RCM/lagranto.ecmwf-master
read_trajectory.m
.m
lagranto.ecmwf-master/figure/matlab/read_trajectory.m
1,856
utf_8
4e43348443da41cbdb9892984f782b5e
% ---------------------------------------------------------------------- % Read a trajectory file % ---------------------------------------------------------------------- function out = read_trajectory(filename); % Open the trajectory file fid = fopen(filename,'r') % Read the info line (tra.info) line = textscan...
github
matthewbrawley/SeizurePredictionTeam1-master
step1_generate_features.m
.m
SeizurePredictionTeam1-master/Product_EpiSure/Matlab/step1_generate_features.m
3,959
utf_8
e2168343229cb4a6efb6a1fc70da20ab
function step1_generate_features(subjectNames,segmentTypes,options) % step1_GENERATE_FEATURES genearates a set of features that will be % compared against a trained LASSO GLM model. % % Input: % subjectNames: % Patient to look at (cell strings). e.g. {'test_3'} % segmentTypes: % ...
github
matthewbrawley/SeizurePredictionTeam1-master
step1_generate_features.m
.m
SeizurePredictionTeam1-master/Development/Matlab/step1_generate_features.m
6,819
utf_8
fe4efd1f7992c97684a94e519acaac3f
function step1_generate_features(subjectNames,segmentTypes,options) %STEP1_GENERATE_FEATURES genearates a set of features that will be % later on used to train a LASSO GLM model. % % Input: % subjectNames: % Patient to look at (cell strings). e.g. {'train_1'} % segmentTypes: % ...
github
bushuhui/SequenceSFM-master
klt_read_featuretable.m
.m
SequenceSFM-master/Thirdparty/klt-1.3.4/matlab/klt_read_featuretable.m
3,265
utf_8
a08ca3a4685471ab940f8c399f7cccf2
% KLT_READ_FEATURE_TABLE Read a feature table written by KLTWriteFeatureTable. % % [X, Y, VAL] = KLT_READ_FEATURE_TABLE(FILENAME) reads the feature table % in FILENAME into the two-dimensional arrays X, Y, and VAL. The % dimensions of X, Y, and VAL are M by N, where M is the number of % features and...
github
bushuhui/SequenceSFM-master
colamd_test.m
.m
SequenceSFM-master/Thirdparty/SSBA-3.0/COLAMD/MATLAB/colamd_test.m
11,737
utf_8
1bbab37469571534db129da1e1531e5b
function colamd_test %COLAMD_TEST test colamd2 and symamd2 % Example: % colamd_test % % COLAMD and SYMAMD testing function. Here we try to give colamd2 and symamd2 % every possible type of matrix and erroneous input that they may encounter. % We want either a valid permutation returned or we want them to fail % gra...
github
Open-UAV/Firmware-master
ellipsoid_fit.m
.m
Firmware-master/Tools/Matlab/ellipsoid_fit.m
6,102
utf_8
b8fff7152313707a347ab528f7fbce9b
% Copyright (c) 2009, Yury Petrov % All rights reserved. % % Redistribution and use in source and binary forms, with or without % modification, are permitted provided that the following conditions are % met: % % * Redistributions of source code must retain the above copyright % notice, this list of conditions...
github
baiyancheng20/lightcaffe-master
classification_demo.m
.m
lightcaffe-master/caffe-fast-rcnn/matlab/demo/classification_demo.m
5,412
utf_8
8f46deabe6cde287c4759f3bc8b7f819
function [scores, maxlabel] = classification_demo(im, use_gpu) % [scores, maxlabel] = classification_demo(im, use_gpu) % % Image classification demo using BVLC CaffeNet. % % IMPORTANT: before you run this demo, you should download BVLC CaffeNet % from Model Zoo (http://caffe.berkeleyvision.org/model_zoo.html) % % *****...
github
qw245/BlindFuse-master
idHSsub.m
.m
BlindFuse-master/idHSsub.m
1,696
utf_8
661ba86bc0e3e89810b3dc2db3d5bd35
%% HS subspace identification: Identifying the subspace where HS data live in function [P_inc, P_dec, D, nb_sub]=idHSsub(XHd,subMeth,scale,varargin) temp=reshape(XHd,[size(XHd,1)*size(XHd,2) size(XHd,3)])'; % temp=temp-repmat(mean(temp,2),[1,size(temp,2)]); % or equally temp=bsxfun(@minus, temp, mean(temp,2)); if nar...
github
chail/NMF_neurodevelopment-master
wavelet.m
.m
NMF_neurodevelopment-master/matlab_functions/grinsted-wavelet-coherence-29dc526/private/wavelet.m
5,820
utf_8
f48c1d1d0c53b9b5ca499a3251f771a0
%WAVELET 1D Wavelet transform with optional singificance testing % % [WAVE,PERIOD,SCALE,COI] = wavelet(Y,DT,PAD,DJ,S0,J1,MOTHER,PARAM) % % Computes the wavelet transform of the vector Y (length N), % with sampling rate DT. % % By default, the Morlet wavelet (k0=6) is used. % The wavelet basis is normalized t...
github
chail/NMF_neurodevelopment-master
wave_signif.m
.m
NMF_neurodevelopment-master/matlab_functions/grinsted-wavelet-coherence-29dc526/private/wave_signif.m
6,564
utf_8
902dbc3d1fb367cd50c144a31dffef4a
%WAVE_SIGNIF Significance testing for the 1D Wavelet transform WAVELET % % [SIGNIF,FFT_THEOR] = ... % wave_signif(Y,DT,SCALE,SIGTEST,LAG1,SIGLVL,DOF,MOTHER,PARAM) % % INPUTS: % % Y = the time series, or, the VARIANCE of the time series. % (If this is a single number, it is assumed to be the variance.....
github
chail/NMF_neurodevelopment-master
wave_bases.m
.m
NMF_neurodevelopment-master/matlab_functions/grinsted-wavelet-coherence-29dc526/private/wave_bases.m
2,932
utf_8
0006a97e31ea35ae0a9abd0d3a2e03e0
%WAVE_BASES 1D Wavelet functions Morlet, Paul, or DOG % % [DAUGHTER,FOURIER_FACTOR,COI,DOFMIN] = ... % wave_bases(MOTHER,K,SCALE,PARAM); % % Computes the wavelet function as a function of Fourier frequency, % used for the wavelet transform in Fourier space. % (This program is called automatically by WAVELE...
github
chen1474147/Deep3DPose-master
prepare_batch.m
.m
Deep3DPose-master/5-caffe/matlab/caffe/prepare_batch.m
1,298
utf_8
68088231982895c248aef25b4886eab0
% ------------------------------------------------------------------------ function images = prepare_batch(image_files,IMAGE_MEAN,batch_size) % ------------------------------------------------------------------------ if nargin < 2 d = load('ilsvrc_2012_mean'); IMAGE_MEAN = d.image_mean; end num_images = length...
github
chen1474147/Deep3DPose-master
matcaffe_demo_vgg.m
.m
Deep3DPose-master/5-caffe/matlab/caffe/matcaffe_demo_vgg.m
3,036
utf_8
f836eefad26027ac1be6e24421b59543
function scores = matcaffe_demo_vgg(im, use_gpu, model_def_file, model_file, mean_file) % scores = matcaffe_demo_vgg(im, use_gpu, model_def_file, model_file, mean_file) % % Demo of the matlab wrapper using the networks described in the BMVC-2014 paper "Return of the Devil in the Details: Delving Deep into Convolutional...
github
chen1474147/Deep3DPose-master
matcaffe_demo.m
.m
Deep3DPose-master/5-caffe/matlab/caffe/matcaffe_demo.m
3,344
utf_8
669622769508a684210d164ac749a614
function [scores, maxlabel] = matcaffe_demo(im, use_gpu) % scores = matcaffe_demo(im, use_gpu) % % Demo of the matlab wrapper using the ILSVRC network. % % input % im color image as uint8 HxWx3 % use_gpu 1 to use the GPU, 0 to use the CPU % % output % scores 1000-dimensional ILSVRC score vector % % You m...
github
chen1474147/Deep3DPose-master
matcaffe_demo_vgg_mean_pix.m
.m
Deep3DPose-master/5-caffe/matlab/caffe/matcaffe_demo_vgg_mean_pix.m
3,069
utf_8
04b831d0f205ef0932c4f3cfa930d6f9
function scores = matcaffe_demo_vgg_mean_pix(im, use_gpu, model_def_file, model_file) % scores = matcaffe_demo_vgg(im, use_gpu, model_def_file, model_file) % % Demo of the matlab wrapper based on the networks used for the "VGG" entry % in the ILSVRC-2014 competition and described in the tech. report % "Very Deep Convo...