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
zpole/IICV-master
phow_caltech101.m
.m
IICV-master/apps/phow_caltech101.m
11,594
utf_8
7f4890a2e6844ca56debbfe23cca64f3
function phow_caltech101() % PHOW_CALTECH101 Image classification in the Caltech-101 dataset % This program demonstrates how to use VLFeat to construct an image % classifier on the Caltech-101 data. The classifier uses PHOW % features (dense SIFT), spatial histograms of visual words, and a % Chi2 SVM. To speedu...
github
zpole/IICV-master
sift_mosaic.m
.m
IICV-master/apps/sift_mosaic.m
4,621
utf_8
8fa3ad91b401b8f2400fb65944c79712
function mosaic = sift_mosaic(im1, im2) % SIFT_MOSAIC Demonstrates matching two images using SIFT and RANSAC % % SIFT_MOSAIC demonstrates matching two images based on SIFT % features and RANSAC and computing their mosaic. % % SIFT_MOSAIC by itself runs the algorithm on two standard test % images. Use SIFT_MOSAI...
github
zpole/IICV-master
encodeImage.m
.m
IICV-master/apps/recognition/encodeImage.m
5,393
utf_8
7644a5b00895b59e6e89d19467325a00
function descrs = encodeImage(encoder, im, varargin) % ENCODEIMAGE Apply an encoder to an image % DESCRS = ENCODEIMAGE(ENCODER, IM) applies the ENCODER % to image IM, returning a corresponding code vector PSI. % % IM can be an image, the path to an image, or a cell array of % the same, to operate on multiple ...
github
zpole/IICV-master
experiments.m
.m
IICV-master/apps/recognition/experiments.m
6,943
utf_8
96e6f85773b675c51514926a32e8c171
function experiments() % EXPERIMENTS Run image classification experiments % The experimens download a number of benchmark datasets in the % 'data/' subfolder. Make sure that there are several GBs of % space available. % % By default, experiments run with a lite option turned on. This % quickly runs all...
github
zpole/IICV-master
encodeImageColor.m
.m
IICV-master/apps/recognition/encodeImageColor.m
5,346
utf_8
6ee5450ba2461ea1742e45b3e388b769
function descrs = encodeImageColor(encoder, im, varargin) % ENCODEIMAGE Apply an encoder to an image % DESCRS = ENCODEIMAGE(ENCODER, IM) applies the ENCODER % to image IM, returning a corresponding code vector PSI. % % IM can be an image, the path to an image, or a cell array of % the same, to operate on mult...
github
zpole/IICV-master
getDenseSIFT.m
.m
IICV-master/apps/recognition/getDenseSIFT.m
1,679
utf_8
2059c0a2a4e762226d89121408c6e51c
function features = getDenseSIFT(im, varargin) % GETDENSESIFT Extract dense SIFT features % FEATURES = GETDENSESIFT(IM) extract dense SIFT features from % image IM. % Author: Andrea Vedaldi % Copyright (C) 2013 Andrea Vedaldi % All rights reserved. % % This file is part of the VLFeat library and is made availab...
github
wangzheallen/transfer_ijcv-master
prepare_image.m
.m
transfer_ijcv-master/prepare_image.m
1,511
utf_8
dbfd4944744492e1a2210f1bae501eb0
% ------------------------------------------------------------------------ function crops_data = prepare_image(im, scale) CROPPED_DIM = 224; im = imresize(im, scale); im_data = im(:, :, [3, 2, 1]); % permute channels from RGB to BGR im_data = permute(im_data, [2, 1, 3]); % flip width and height im_data = single(im_...
github
wangzheallen/transfer_ijcv-master
heatmap.m
.m
transfer_ijcv-master/picture/heatmap.m
25,671
utf_8
c169d97df2ee210ed924b19f7188d128
function [hImage, hText, hXText] = heatmap(mat, xlab, ylab, textmat, varargin) % HEATMAP displays a matrix as a heatmap image % % USAGE: % [hImage, hText, hTick] = heatmap(matrix, xlabels, ylabels, textmatrix, 'param', value, ...) % % INPUTS: % * HEATMAP displays "matrix" as an image whose color intensities refl...
github
ziyubiti/PUCCHpower-master
hPRACHDetectionResultsV2.m
.m
PUCCHpower-master/PUCCH Power/Model/hPRACHDetectionResultsV2.m
525
utf_8
0f16cd3792fdcdd6b9297ab03acafa25
function hPRACHDetectionResultsV2(SNRdB, numSubframes, P) figure; plot(SNRdB,P,'b-o','LineWidth',2,'MarkerSize',7); title(['Detection Probability for ', ... num2str(numSubframes) ' subframe(s)'] ); xlabel('SNRdB'); ylabel('Detection Probability'); grid on; hold on; % plot(-8.0,0....
github
ziyubiti/PUCCHpower-master
FreOffsetEstimateCp.m
.m
PUCCHpower-master/PUCCH Power/Model/FreOffsetEstimateCp.m
1,316
utf_8
3ec2e7a5a9bce8e7b9fc38b1e646c11c
% coarse freq offset estimation,[-7.5K 7.5K] % flag = 1, UL, the cp part and the last symbole are phase inversed , % because the 7.5K half sc freq offset function [freqoffset_cp] = FreOffsetEstimateCp(timeDomainSig,infoScfdma,ULflag) nFFT = infoScfdma.Nfft; CP_len = infoScfdma.CyclicPrefixLengths; q = size(timeDoma...
github
ziyubiti/PUCCHpower-master
ltePUSCHDecodeV2.m
.m
PUCCHpower-master/PUCCH Power/Model/ltePUSCHDecodeV2.m
11,277
utf_8
45b4a2c8b67dec7aaa409ac850e77027
%ltePUSCHDecode Physical uplink shared channel decoding % [CWS,SYMBOLS] = ltePUSCHDecode(...) returns a soft bit vector, or cell % array of soft bit vectors, CWS containing the received codeword % estimates and received constellation of complex symbol vector SYMBOLS % resulting from performing the inverse of th...
github
ziyubiti/PUCCHpower-master
lteSCFDMADemodulateV2.m
.m
PUCCHpower-master/PUCCH Power/Model/lteSCFDMADemodulateV2.m
6,508
utf_8
6d445113c4fef14ec3e8cbfe7d2cd222
%lteSCFDMADemodulate SC-FDMA demodulation % GRID = lteSCFDMADemodulate(UE,WAVEFORM) performs SC-FDMA demodulation % of the time domain waveform WAVEFORM given ue-specific settings % structure UE which must include the following fields: % NULRB - Number of uplink resource blocks % CyclicPrefixUL - Opt...
github
ziyubiti/PUCCHpower-master
TimeFreqOffsetEstimate.m
.m
PUCCHpower-master/PUCCH Power/Model/TimeFreqOffsetEstimate.m
762
utf_8
26ed394c2d4540158f321a924fb0b4a8
% PUSCH DMRS channel estimation to calc time and freq offset % s2 = s1 * exp(j*2pi*deltaF*delataT*nTs); % normalized timeoffset ,express Ts; % absolute freqoffset,express Hz; % small freq offset, [-1000, 1000]; function [timeoffset,freqoffset] = TimeFreqOffsetEstimate(estChannelGrid,drsindex) q = size(estChannel...
github
ziyubiti/PUCCHpower-master
lteULFrameOffsetV2.m
.m
PUCCHpower-master/PUCCH Power/Model/lteULFrameOffsetV2.m
5,385
utf_8
5309b7a860293dba6f67bbcff2393943
%lteULFrameOffset PUSCH DRS uplink frame timing estimate % OFFSET=lteULFrameOffset(UE,CHS,WAVEFORM) performs synchronization using % PUSCH DRS signals for the time domain waveform WAVEFORM given % UE-specific settings UE and PUSCH configuration CHS. % UE must be a structure including the following fields: % ...
github
ziyubiti/PUCCHpower-master
hPUSCHResultsV2.m
.m
PUCCHpower-master/PUCCH Power/Model/hPUSCHResultsV2.m
1,194
utf_8
6776bded8fad1cf7a2dd50fccb988924
function hPUSCHResultsV2(SNRIn, NFrames, trBlkSizes, throughput, bitThroughput) figure; plot(SNRIn, mean(bitThroughput, 2)/1000,'-b*'); title(['Throughput for ', num2str(NFrames) ' Frame(s)']); xlabel('SNR (dB)'); ylabel('Throughput (Mbps)'); grid on; hold on; plot(SNRIn, mean(trBlkSizes)...
github
ziyubiti/PUCCHpower-master
ltePDCCHSearchV2.m
.m
PUCCHpower-master/PUCCH Power/Model/ltePDCCHSearchV2.m
9,797
utf_8
9f916c5b87c94afc10d46cce22f887ad
%ltePDCCHSearch PDCCH downlink control information search % [DCISTR,DCIBITS] = ltePDCCHSearch(ENB,CHS,SOFTBITS) recovers DCI % message structures DCISTR and corresponding vectors of DCI message bits % DCIBITS after blind decoding the multiplexed PDCCHs within the control % region given by input vector of soft b...
github
ziyubiti/PUCCHpower-master
lteSCFDMAModulateV2.m
.m
PUCCHpower-master/PUCCH Power/Model/lteSCFDMAModulateV2.m
182
utf_8
a6a78bd1e2ce4d54740b7eac025e3c5b
function [timeDomainSig,infoScfdma] = lteSCFDMAModulateV2(rmc,frame) [timeDomainSig,infoScfdma] = lteSCFDMAModulate(rmc,frame); timeDomainSig = timeDomainSig*sqrt(infoScfdma.Nfft);
github
ziyubiti/PUCCHpower-master
lteDlTimeFreqOffsetEstimate.m
.m
PUCCHpower-master/PUCCH Power/Model/lteDlTimeFreqOffsetEstimate.m
758
utf_8
c3940a94bbd2b5c4d3fc28b47da6bea9
% CRS channel estimation to calc time and freq offset % s2 = s1 * exp(j*2pi*deltaF*delataT*nTs); % normalized timeoffset ,express Ts; % absolute freqoffset,express Hz; % small freq offset, [-1000, 1000]; % hest:4D, 1200*14*Nrx*Ntx function [timeoffset,freqoffset] = lteDlTimeFreqOffsetEstimate(hest) H = []; H07 = ...
github
ziyubiti/PUCCHpower-master
hHARQACKResultsV2.m
.m
PUCCHpower-master/PUCCH Power/Model/hHARQACKResultsV2.m
656
utf_8
02e0d56a9a18fd392f8202440334b01c
function hHARQACKResultsV2(SNRdB, pFalse, pMissed) figure; % Probability of false detection semilogy(SNRdB, pFalse, 'k-*', 'LineWidth', 2, 'MarkerSize', 7); grid on; hold on; % Probability of missed detection semilogy(SNRdB, pMissed, 'b-o', 'LineWidth', 2, 'MarkerSize', 7); hold on; ...
github
ziyubiti/PUCCHpower-master
lteULChannelEstimateV2.m
.m
PUCCHpower-master/PUCCH Power/Model/lteULChannelEstimateV2.m
38,438
utf_8
ad1d20b9c7706bafdc519dff4f7958ff
%lteULChannelEstimate PUSCH uplink channel estimation % [HEST,NOISEEST] = lteULChannelEstimate(...) returns the estimated % channel between each transmit and receive antenna and an estimate of % the noise power spectral density. % % HEST is an M-by-N-by-NRxAnts-by-NTxAnts array where M is the total % number o...
github
ziyubiti/PUCCHpower-master
PuschSinrEstimate.m
.m
PUCCHpower-master/PUCCH Power/Model/PuschSinrEstimate.m
216
utf_8
57ba7febf9de4c72d8a1ab0fd17b0403
function [Sinr] = PuschSinrEstimate(estChannelGrid,drsindex,noiseEst) q = size(estChannelGrid,3); Hp = estChannelGrid(drsindex,[4 11],:); Sp = mean(mean(mean(Hp.*conj(Hp)))); Sinr = 10*log10(Sp/noiseEst);
github
ziyubiti/PUCCHpower-master
hHARQTableV2.m
.m
PUCCHpower-master/PUCCH Power/Model/hHARQTableV2.m
1,425
utf_8
8516c6df7207a48fe163ad804374995d
%hHARQTable HARQ process schedule % HARQTABLE = hHARQTable() is the HARQ process schedule for 8 processes. % % HARQTABLE is an array of indices which are used to index a HARQ process % on a subframe-by-subframe basis. Therefore HARQTABLE provides process % indices for an integer number of frames. If a HARQ proc...
github
ahbarnett/BIE3D-master
biperiodic3dlaplace.m
.m
BIE3D-master/doublyperiodic/biperiodic3dlaplace.m
10,309
utf_8
ab7cf9512f456295ed801aeba37abbca
function biperiodic3dlaplace % Evaluate the potential due to N monopoles or dipoles with bi-periodic Laplace % kernel in 3D, & check periodicity. No quadrature yet. No FMM yet. % Barnett 13/3/1 - 13/3/5. collab Wilkening. %testDLPderiv, return N = 1e3; v = 2; % problem size # source pts; verbosity (0,1,2,...) fmm = 0...
github
ahbarnett/BIE3D-master
dist_ellipsoid.m
.m
BIE3D-master/surfaces/dist_ellipsoid.m
1,642
utf_8
eb8dd33570e132e1b2560fdd7f9205f9
function [dist,z,lambda] = dist_ellipsoid(y,semiaxes) % DIST_ELLIPSOID distance from point in 3D to standard ellipsoid % % [dist,z,lambda] = dist_ellipsoid(x,semiaxes) where semiaxes=[a b c], and % x is point in R3, % returns dist, point achieving it z, and lagrange multiplier lambda % (lambda<0 and dist=0 if was ins...
github
ahbarnett/BIE3D-master
dist_ellipsoids.m
.m
BIE3D-master/surfaces/dist_ellipsoids.m
2,697
utf_8
2b2811366098057e58f2b08599081b22
function [d x y its] = dist_ellipsoids(E1,R1,t1,E2,R2,t2, abstol) % DIST_ELLIPSOIDS find min dist between two ellipsoids % % [d x y] = dist_ellipsoids(E1,R1,t1,E2,R2,t2) % finds dist between two ellipsoids, each defined by semiaxis list E, % 3x3 rotation matrix R, and center vector t. % d an estimate of the closest...
github
ahbarnett/BIE3D-master
create_panels.m
.m
BIE3D-master/surfaces/create_panels.m
6,522
utf_8
dc5eb69e4c292e3c4a5174100f8436f7
function [pan N] = create_panels(shape,so,o) % CREATE_PANELS Build panels for various 3D surface geometries % % [pan N] = create_panels(shape,shapeopts,convopts) % Creates struct array of panels with their quadrature nodes for unknowns % % shape = 'torus': shapeopts has fields a (major radius), b (minor rad), % ...
github
ahbarnett/BIE3D-master
setup_torus_doubleptr.m
.m
BIE3D-master/surfaces/setup_torus_doubleptr.m
1,607
utf_8
edee523849a548f0f015a7f8114c0650
function s = setup_torus_doubleptr(a,b,Ns) % SETUP_TORUS_DOUBLEPTR. analytic torus-like 3D surf w/ global double-PTR quad % % s = setup_torus_doubleptr(a,b,Ns) creates double-PTR global quadrature % of a (possibly radius-modulated) torus. See modulatedtorus for geometry (a,b) % and setupdoubleptr for Ns. Now only a ...
github
ahbarnett/BIE3D-master
data_planewave.m
.m
BIE3D-master/timedomainwaveeqn/data_planewave.m
1,327
utf_8
6b9bf2f3708b9150f10a0b1b9375b4cb
function [f,fn,ft] = data_planewave(incdir,T,Tt,t,x,nx) % DATA_PLANEWAVE eval data f, fn, ft for plane wave solution to 3D wave eqn. % % [f,fn,ft] = data_planewave(incdir,T,Tt,t,x,nx) % % Inputs: % t - 1*n array of target times, or a single time % x, nx - 3*n arrays of target points and normal derivs (nx is optional...
github
ahbarnett/BIE3D-master
tdSDinterpmats_panels.m
.m
BIE3D-master/timedomainwaveeqn/tdSDinterpmats_panels.m
10,158
utf_8
06486ec8806f0e4f1240a93b3f45eea1
function [Sret Dret Sdotret] = tdSDinterpmats_panels(tpan,span,Linfo,intinfo) % % [Sret Dret Sdotret] = tdSDinterpmats_panels(tpan,span,Linfo,intinfo) % % eval p^2-by-NT matrices which apply retarded S,D, and S(d/dt) ops from dens % hist grids % % where N is # dofs in all src pans. % % tpan - target "panel" (ie has ...
github
ahbarnett/BIE3D-master
maxeigpowermeth.m
.m
BIE3D-master/timedomainwaveeqn/maxeigpowermeth.m
1,375
utf_8
08eb0897edf6e765ee340fbabb4b4714
function rho = maxeigpowermeth(Afun,N,its,pad) % MAXEIGPOWERMETH. Estimate largest eigenvalue magnitude of linear operator % % rho = maxeigpowermeth(Afun,N,its,pad) estimates largest eigenvalue % magnitude of N*N matrix applied by mat-vec function handle Afun. % its iterations are used, and the slope estimates using ...
github
ahbarnett/BIE3D-master
data_ptsrc.m
.m
BIE3D-master/timedomainwaveeqn/data_ptsrc.m
1,408
utf_8
d01a5c1d44131f033b9f7c68f7a9f697
function [f,fn,ft] = data_ptsrc(xs,T,Tt,t,x,nx) % DATA_PTSRC eval data f, fn, ft for fixed-loc t-dep pt src, 3D wave equation. % % [f,fn,ft] = data_ptsrc(xs,T,Tt,t,x,nx) % % Inputs: % t - 1*n array of target times, or a single time % x, nx - 3*n arrays of target points and normal derivs (nx is optional) % xs - 3*1 ...
github
ahbarnett/BIE3D-master
test_volterra.m
.m
BIE3D-master/timedomainwaveeqn/timeinterp/test_volterra.m
4,109
utf_8
fc1661b9da761f07e172fe270d7983ac
function test_volterra(verb) % test_volterra(verb) % verb = 0: text only, 1: check p-conv of Gauss & final fig, 2: more figs % % solve simple single-variable Volterra IE via simplified pred-corr variants, % and Hagstrom spline weights (interpmat call). % % We solve u(t) + int_{t-1}^t u(s) ds = f(t), for all t % ie...
github
ahbarnett/BIE3D-master
fig_volterra.m
.m
BIE3D-master/timedomainwaveeqn/paper/fig_volterra.m
4,610
utf_8
bc843225375c81e9f74c690db87337fe
% figure script for Volterra IE convergence for time-interp pred-corr scheme % Barnett 11/14/18, just a m-loop (note m=2q) around test_volterra.m % % We solve u(t) + int_{t-1}^t u(s) ds = f(t), for all t % ie 2nd-kind Volterra w/ unit top-hat kernel from 0 to 1 unit into the past. % f(t) is built to match to the G...
github
ahbarnett/BIE3D-master
legnum.m
.m
BIE3D-master/timedomainwaveeqn/paper/legnum.m
1,054
utf_8
f51b73a86475200e52f77a4ee0f812b0
% % LEGNUM Legend current figure using array of numbers. % LEGNUM(X) adds a legend to current figure using string % representations of the numbers in X. If X is a two- or multi-dimensional % array, it will be flattened and all elements will be included. % % LEGNUM(X, P) is the same but uses precision P, whe...
github
ahbarnett/BIE3D-master
num2cellstr.m
.m
BIE3D-master/timedomainwaveeqn/paper/num2cellstr.m
1,109
utf_8
5e536c4e08e2f15f725a04d83315cf69
% % NUM2CELLSTR convert array of floating-point numbers to cell array of strings % NUM2CELLSTR(X) converts array X to cell array of strings. % If X is a two- or multi-dimensional array, it will be % flattened (all elements will still be included). % % NUM2CELLSTR(X, P) is the same but uses precision P, wher...
github
ahbarnett/BIE3D-master
showsurf.m
.m
BIE3D-master/utils/showsurf.m
2,709
utf_8
d2534385e8dba393f2ed5a98c51de4ce
function [h h2] = showsurf(s,c,o) % SHOWSURF. Plot nodes in a 3D surface struct, and possibly normals. % % h = showsurf(s) plots in 3D, on current figure, the points s.x, % with normals given by s.nx, returning a graphics handle h to the points. % % h = showsurf(s,c) uses the color character in c. % % h = showsurf(s,...
github
ahbarnett/BIE3D-master
gauss.m
.m
BIE3D-master/utils/gauss.m
310
utf_8
6fa87174dd0fbca1d16fbd664f228143
% GAUSS nodes x (Legendre points) and weights w % for Gauss quadrature on [-1,1], for N small (<100). From Trefethen book % [x,w] = gauss(N) function [x,w] = gauss(N) beta = .5./sqrt(1-(2*(1:N-1)).^(-2)); T = diag(beta,1) + diag(beta,-1); [V,D] = eig(T); x = diag(D); [x,i] = sort(x); w = 2*V(1,i).^2;
github
ahbarnett/BIE3D-master
tensorprod_interp.m
.m
BIE3D-master/utils/tensorprod_interp.m
1,203
utf_8
231826ef90f684fe79045b3079488258
function L = tensorprod_interp(t,s1,s2) % TENSORPROD_INTERP build interpolation matrix from 2D tensor-prod to arb pts % % L = tensorprod_interp(t,s1,s2) % Inputs: t - (2-by-m) target pts in some rectangle % s1,s2 - (length p vectors) nodes in each direction for interp from % Outputs: L - (m-by-p^2) den...
github
ahbarnett/BIE3D-master
setupdoubleptr.m
.m
BIE3D-master/utils/setupdoubleptr.m
2,313
utf_8
0809c3c76bdfa85e3a7ce20d0e31f953
function s = setupdoubleptr(s,Ns) % SETUPDOUBLEPTR. Add double-PTR node info to an analytic 3D torus-like surface % % s = setupdoubleptr(s,N) where N = [Nu Nv] adds a Nu*Nv double periodic % trapezoid rule quadrature to a torus-like global surface defined by funcions % s.Z(u,v) - the defining global map from u,v in ...
github
ahbarnett/BIE3D-master
peri2dspecinterp.m
.m
BIE3D-master/utils/peri2dspecinterp.m
2,277
utf_8
b279fdffb9874e2e1634ec5acd1d09d2
function g = peri2dspecinterp(f,N) % PERI2DSPECINTERP resample doubly-periodic grid-sampled function to new grid. % % g = peri2dspecinterp(f,[N1 N2]) % inputs: f - rect array n1*n2 (must both be even) of input samples, % N1,N2 - desired dimensions of samples (both even) % outputs: g - rect array N1*N2 of int...
github
ahbarnett/BIE3D-master
intxperiinterp.m
.m
BIE3D-master/utils/intxperiinterp.m
4,973
utf_8
4a3a1834cc4f871d8baf959345544a62
function g = intxperiinterp(f,N,Y,n,y,sphere) % INTXPERIINTERP resample 2d func on interval cross periodic to new grid. % % g = intxperiinterp(f,N,Y,n,y) spectrally resamples smooth f given on (x,y) in % [0,2pi)x[-1,1] at the 2d nodes of the following form: % y=+1 % . . . . . . . . . <- n(3) pts on...
github
ahbarnett/BIE3D-master
setupspherequad.m
.m
BIE3D-master/utils/setupspherequad.m
5,708
utf_8
f34f770de1636f33785f438d7b92edcf
function s = setupspherequad(s,Ns,o) % SETUPSPHEREQUAD. Add PTRxGL node info to an analytic 3D sphere-like surface % % s = setupspherequad(s,Ns) where Ns = [Nu Nv] adds a spectral quadrature, % periodic trapezoid rule on each ring in u, for each node of a Gauss-Legendre % rule in v. The surface must be of type topo=...
github
ahbarnett/BIE3D-master
checkgrad.m
.m
BIE3D-master/utils/checkgrad.m
981
utf_8
4cb4d0e9b63433ec49c01377a1145e10
function err = checkgrad(f,df) % CHECKGRAD verify an function in R3 has correct analytic gradient % % err = checkgrad(f,df) returns error between finite-differencing approx to % grad f and the function df. f is a function handle taking a stack of m 3-cpt % col vecs and returning a row vec of m values. df only need ...
github
ahbarnett/BIE3D-master
intxperiinterpmat.m
.m
BIE3D-master/utils/intxperiinterpmat.m
4,837
utf_8
f49e4973e2f8e7277dc08f788a8f809c
function A = intxperiinterpmat(N,Y,n,y,sphere) % INTXPERIINTERPMAT Matrix that resamples 2d func on interval cross periodic. % % L = intxperiinterpmat(N,Y,n,y) returns the sum(N)-by-sum(n) dense matrix that % when acting on a smooth vector of values on a spectral grid on (x,y) in % [0,2pi)x[-1,1], returns the vector ...
github
ahbarnett/BIE3D-master
dist_pointclouds.m
.m
BIE3D-master/utils/dist_pointclouds.m
2,244
utf_8
8e263dd39e9147f9faad8dac45377675
function [d x y i j] = dist_pointclouds(b1,b2,meth) % DIST_POINTCLOUDS find min dist between two sets of points % % [d x y i j] = dist_pointclouds(b1,b2) where b1, b2 are objects with % fields x giving 3xN array of points in R3, returns % d = dist(b1,b2) an estimate of the closest distance, and x,y the pair % achiev...
github
ahbarnett/BIE3D-master
interpmat_1d.m
.m
BIE3D-master/utils/interpmat_1d.m
1,390
utf_8
40d127c3c9a8666cfc90ecfe8c8a9758
function L = interpmat_1d(t,s) % INTERPMAT_1D interpolation matrix from nodes in 1D to target nodes % % L = interpmat_1d(t,s) returns interpolation matrix taking values on nodes s % to target nodes t. Computed in Helsing style. % bits taken from qplp/interpmatrix.m from 2013. % Barnett 7/17/16. Auto-centering & sca...
github
ahbarnett/BIE3D-master
showpanel.m
.m
BIE3D-master/utils/showpanel.m
1,249
utf_8
a285e76ece50a289a4ad0d97a06ebfa2
function h = showpanel(s,varargin) % SHOWPANEL. Plot a panel, or list of panels, onto current figure % % h = showpanel(s) where s is a panel struct plots the panel boundary % on current figure, returning plot handle to lines. % If s is cell array of panels, shows all, and returns col vec of handles. % Barnett 11/20...
github
ahbarnett/BIE3D-master
showsurffunc.m
.m
BIE3D-master/utils/showsurffunc.m
4,261
utf_8
9ad0e3f0c140875b163a6e0120ef8da9
function [h h2] = showsurffunc(s, f, o) % SHOWSURFFUNC show real-valued scalar func on surface (torus-like for now) % % [h h2] = showsurffunc(s, f, o) plots a 3D surface with colorscale indicating % value of the function f defined on the nodes of the quadrature in s. % % Inputs: % s = either: cell array of quad pan...
github
ahbarnett/BIE3D-master
Lap3dSLPmat.m
.m
BIE3D-master/kernels/Lap3dSLPmat.m
1,826
utf_8
027d166999d78cd5c8906214f515cab3
function [A An] = Lap3dSLPmat(t,s) % LAP3DSLPMAT. dense Laplace SLP Nystrom eval matrix from sources to targets % % [A An] = Lap3dSLPmat(t,s) % % Inputs: % s - source surface struct with fields: % x (3*N) nodes, w (1*N) quadr weights % t - target struct with fields: % x (3*N) nodes, and, if An requested, n...
github
ahbarnett/BIE3D-master
LapDeval_panels.m
.m
BIE3D-master/kernels/LapDeval_panels.m
5,970
utf_8
faf04d5b7e80b8d37f521cf2fc20984b
function u = LapDeval_panels(tpan,span,dens,paninfo) % LAPDEVAL_PANELS evaluate Laplace DLP from surface in R3, incl on-surface % % u = LapDeval_panels(t,s,dens,paninfo) % % Called with no arguments does a self-test (see bottom of code for usage) % % s,t are src and targ panel cell arrays. t doesn't need valid t.inds ...
github
ahbarnett/BIE3D-master
LapSeval_panels.m
.m
BIE3D-master/kernels/LapSeval_panels.m
4,404
utf_8
dc74d04cd6fe6842bd3a45a3900a0bfb
function u = LapSeval_panels(tpan,span,dens,paninfo) % LAPSEVAL_PANELS evaluate Laplace SLP from surface in R3, incl on-surface % % u = LapSeval_panels(t,s,dens,paninfo) % % Called with no arguments does a self-test (see bottom of code for usage) % % s,t are src and targ panel cell arrays. t doesn't need valid t.inds ...
github
ahbarnett/BIE3D-master
Lap3dDLPmat.m
.m
BIE3D-master/kernels/Lap3dDLPmat.m
2,537
utf_8
a06206ad463ce060addaa07173678825
function [A An] = Lap3dDLPmat(t,s) % LAP3DDLPMAT. dense Laplace DLP Nystrom eval matrix from sources to targets % % [A An] = Lap3dDLPmat(t,s) % % Inputs: % s - source surface struct with fields: % x (3*N) nodes, nx (3*N) unit normals, w (1*N) quadr weights % t - target struct with fields: % x (3*N) nodes, ...
github
ahbarnett/BIE3D-master
RetDeval_panels.m
.m
BIE3D-master/kernels/RetDeval_panels.m
3,618
utf_8
a426fc95bf59c0d80d355c950fdc516f
function u = RetDeval_panels(tpan,span,dens,paninfo) % RETDEVAL_PANELS evaluate extra retarded wave eqn DLP term from surface in R3 % NOT YET incl on-surface % % u = RetDeval_panels(t,s,dens,paninfo) % % Called with no arguments does a self-test (see bottom of code for usage) % % dens is time deriv of retarded density...
github
ahbarnett/BIE3D-master
add_panels_auxquad.m
.m
BIE3D-master/singquad/add_panels_auxquad.m
2,240
utf_8
ad6366dea81d13940f8be9a1850d6c86
function pan = add_panels_auxquad(pan, o) % pan = add_panels_auxquad(pan, o) adds auxiliary quadr nodes for each target % in each of a set of panels. % % Inputs: % pan = cell array of panels. % o = opts struct to panel_sing_auxquad % % Adds fields to each panel pan{k} in the output struct: % naux - number of aux...
github
ahbarnett/BIE3D-master
setup_auxinterp.m
.m
BIE3D-master/singquad/setup_auxinterp.m
3,787
utf_8
f8361d86762f89aa3127eb9a054ad412
function I = setup_auxinterp(tt,o) % SETUP_AUXINTERP build interpolation matrices from near panels to aux nodes % % I = setup_auxinterp(tt,o) returns a struct giving interp matrices from smooth % quadrature to auxiliary nodes, all in standard panels [-1,1] in param % space. % Assumes tt is tensor product node...
github
ahbarnett/BIE3D-master
panel_sing_auxquad.m
.m
BIE3D-master/singquad/panel_sing_auxquad.m
4,736
utf_8
97e11832be2be663b3156f0179621474
function [z w] = panel_sing_auxquad(targs,o) % PANEL_SING_AUXQUAD Auxiliary singular quadrature nodes in parameter plane % % [z w] = panel_sing_auxquad(targs,par) spits out auxiliary quadrature nodes and % weights for singular kernels with singularity no worse than 1/r on a 3x3 % near panel neighborhood in the par...
github
tommysprague/wmDrop_mFiles-master
wmDrop_combineBehav1.m
.m
wmDrop_mFiles-master/wmDrop_combineBehav1.m
1,474
utf_8
8c01c44146798b8e6d44ac5e2606deb3
% wmDrop_combineBehav1.m % % combines behavioral data (recall error) across all runs for each subj % % % TCS 1/12/2015 function wmDrop_combineBehav1(subj) root = load_root;%'/usr/local/serenceslab/tommy/wmDrop/'; if ~exist([root 'wmDrop_combinedBehav'],'dir'); fprintf('Creating directory: %s\n',[root 'wmDrop_com...
github
tommysprague/wmDrop_mFiles-master
wmDrop_concatenateBehav_scanner.m
.m
wmDrop_mFiles-master/wmDrop_concatenateBehav_scanner.m
2,534
utf_8
5d725b9c6a5bad93e626d39fc2b8a593
% wmDrop_concatenateBehav_scanner.m % % combines all behavioral files into a single file per session, saves into % wmDrop_behav % % TCS 5/4/2015 function wmDrop_concatenateBehav_scanner(subj) root = load_root;%'/usr/local/serenceslab/tommy/wmDrop/'; if nargin < 1 subj = {'AI81','AI82','AI83','AP81','AP82','AP83'...
github
tommysprague/wmDrop_mFiles-master
make_hex.m
.m
wmDrop_mFiles-master/make_hex.m
934
utf_8
500946dd5013b919957521c029593b72
% make_hex % % requires an odd integer, makes a heaxagonal grid w/ that integer number % of rows/that integer wide % % function [x, y] = make_hex(n) if mod(n,2)==0 x = NaN; y = NaN; error('hexMap:invalidInput','Input must be an odd integer'); end step_size = 2/(n-1); % normalized so horizontal axis is...
github
tommysprague/wmDrop_mFiles-master
make_stim_mask.m
.m
wmDrop_mFiles-master/make_stim_mask.m
646
utf_8
a6447ac8a9217d0c97ec83cd14251b7e
% make_stim_mask.m % % Creates a mask of a round stimulus for each stimulus (trial), which is an % element of stimX, stimY, each is stim_size (either a single value or row % the same length as stimX and stimY), evaluated at [xx yy], which is % reshaped into columns, so return is n_stimpts x length(stimX) function s...
github
tommysprague/wmDrop_mFiles-master
build_basis_pts.m
.m
wmDrop_mFiles-master/build_basis_pts.m
706
utf_8
068030df88f924a8eaa2f90d47f4d4c6
% build_basis_pts.m % builds basis set given just a list of rf points, basis fcn sizes, and x,y grid along which to evaluate % (doesn't assume grid of RFs, etc) % % built for wmDrop - hexagonal basis set % % allows for mutliple filter sizes, could use for multiscale RF estimation % % assumes we're using make2dcos.... ...
github
tommysprague/wmDrop_mFiles-master
fdr.m
.m
wmDrop_mFiles-master/fdr.m
2,273
utf_8
0339630d5b76067fde504d464d26a9bf
% fdr() - compute false detection rate mask % % Usage: % >> [p_fdr, p_masked] = fdr( pvals, alpha); % % Inputs: % pvals - vector or array of p-values % alpha - threshold value (non-corrected). If no alpha is given % each p-value is used as its own alpha and FDR corrected % array is ret...
github
tommysprague/wmDrop_mFiles-master
wmDrop_hexMap.m
.m
wmDrop_mFiles-master/stimulusPresentation/wmDrop_hexMap.m
28,031
utf_8
326e1f9a570b8c22cdc5e2623d963df5
% 295 s - 131 TRs @ 2.25 sec/TR (per attn/spatial condition) function wmDrop_hexMap % wmDrop Localizer - adapted from map2dAttn_flicker4.m % % instead of grid of mapping positions, now present stimuli along a % hexagonal grid which is offset a different amount each run % % to distribute null trials: % ...
github
tommysprague/wmDrop_mFiles-master
wmDrop_recall_1d.m
.m
wmDrop_mFiles-master/stimulusPresentation/wmDrop_recall_1d.m
38,798
utf_8
3bd19d2d83a8247c3c05aaa4c820b0fe
function wmDrop_recall_1d % adapted from wmDrop_recall.m % % now uses a recall task - thin bar appears on screen at end of each trial, % must adjust it to match the given coordinate of target as best as % possible % - remember 1, remember 2, drop % % % 8 s delay - delay 1 % 8 s delay - delay 2 % %...
github
tommysprague/wmDrop_mFiles-master
wmDrop_localizer.m
.m
wmDrop_mFiles-master/stimulusPresentation/wmDrop_localizer.m
27,623
utf_8
f679ebe941b12f8f3ca03e8968d7ed70
% 372 s + 5 TRs - (171 TRs @ 2250 ms) function wmDrop_localizer %manual % % this will be used for masking of spatial responses in early regions addpath('../parallel_tools'); %% get user input about sub name etc... mygreen = [0 220 0]; myred = [255 0 0]; mygray = [65 65 65]; % fix this one warni...
github
tommysprague/wmDrop_mFiles-master
wmDrop_hexMap_fixed.m
.m
wmDrop_mFiles-master/stimulusPresentation/wmDrop_hexMap_fixed.m
28,418
utf_8
cd5389f5fcd71309f679e76f2ec544e4
% 295 s - 131 TRs @ 2.25 sec/TR (per attn/spatial condition) function wmDrop_hexMap_fixed % wmDrop Localizer - adapted from map2dAttn_flicker4.m % % instead of grid of mapping positions, now present stimuli along a % hexagonal grid which is offset a different amount each run % % NOTE: this is the "corre...
github
tommysprague/wmDrop_mFiles-master
gridfit_noregress.m
.m
wmDrop_mFiles-master/gridfit/gridfit_noregress.m
2,382
utf_8
f0f7027480bfaecc668032bb1ab8c6df
% gridfit_noregress.m % TCS 2/9/2015, adapted from gridfit.m function [bf_params, err, bf_fcn] = gridfit_noregress(data,grid,grid_params,use_gpu) % data should be datapts x things to fit (e.g., voxels) % grid should be datapts x predictors % grid_params is the params used to make grid - just used to output % bf_params...
github
tommysprague/wmDrop_mFiles-master
gridfit.m
.m
wmDrop_mFiles-master/gridfit/gridfit.m
2,612
utf_8
59aa9412ff3d554b49d60940fac4c86f
% gridfit.m function [bf_params, err, bf_fcn] = gridfit(data,grid,grid_params,amp_range,use_gpu,use_parfor) % data should be datapts x things to fit (e.g., voxels) % grid should be datapts x predictors % grid_params is the params used to make grid - just used to output % bf_params including [a b] as the last two para...
github
tommysprague/wmDrop_mFiles-master
gridfit_finetune.m
.m
wmDrop_mFiles-master/gridfit/gridfit_finetune.m
1,784
utf_8
ccafdf2c6162306ab9c64018bbcc567f
% gridfit_finetune.m function [bf_ft,bf_err,bf_fcn,ex_flag] = gridfit_finetune(data,fitfcn,bf_grid,evalpts) % refines fits computed with gridfit.m using fminsearch and fitfcn, which % is used here to generate an error function (root mean squared error) % % data formatted like gridfit.m: % - data: n_datapts x n_things...
github
tommysprague/wmDrop_mFiles-master
gridfit_finetune_constr.m
.m
wmDrop_mFiles-master/gridfit/gridfit_finetune_constr.m
3,245
utf_8
429f384778a4fd16e0f12b3fbcf582e7
% gridfit_finetune.m function [bf_ft,bf_err,bf_fcn,ex_flag] = gridfit_finetune_constr(data,fitfcn,bf_grid,evalpts,constr,use_parfor) % refines fits computed with gridfit.m using fminsearch and fitfcn, which % is used here to generate an error function (root mean squared error) % % data formatted like gridfit.m: % - d...
github
mattdunlop/bayes-hier-master
ell.m
.m
bayes-hier-master/ell.m
495
utf_8
95829194f11a3b536727724164facfca
% Define the forward map, mapping the geometric field into the observation % space. function l = ell(S,model) % Identity model if strcmp(model,'id') l = model_id(S); % Groundwater flow model elseif strcmp(model,'gwf') l = model_gwf(S); % EIT...
github
mattdunlop/bayes-hier-master
gaussrnd.m
.m
bayes-hier-master/gaussrnd.m
694
utf_8
87802de70e3ea36d44e526a95675be99
% Return a sample of a Gaussian random field on [0,1]^2 with: % mean 0 % covariance operator C = (-Delta + tau^2)^(-alpha) % where Delta is the Laplacian with zero Neumann boundary conditions. % Returned is an N^2x1 vector of Fourier cosine coefficients, so that % U = idct2(reshape(L,N,N)) is the sample in...
github
mattdunlop/bayes-hier-master
make_lvl.m
.m
bayes-hier-master/make_lvl.m
525
utf_8
8fa78caab8b8119db8a6710567838681
% The construction map taking a level set field U to a piecewise constant % geometric field V, with scaling of relative levels by the lengthscale % tau. % The example here is for three phases/two thresholding levels. function V = make_lvl(U,tau,alpha) d = 2; % Spatial dimension c = 0.1*tau^(d/2-alpha)*[1,-1...
github
francisc0garcia/Path_Planning_Simulator-master
RobotSimulation.m
.m
Path_Planning_Simulator-master/RobotSimulation.m
19,465
utf_8
1bbfbcb17d7a66ccd80d4628e51353a7
function varargout = RobotSimulation(varargin) % ROBOTSIMULATION MATLAB code for RobotSimulation.fig % ROBOTSIMULATION, by itself, creates a new ROBOTSIMULATION or raises the existing % singleton*. % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Na...
github
francisc0garcia/Path_Planning_Simulator-master
rrtExtend.m
.m
Path_Planning_Simulator-master/rrtExtend.m
2,128
UNKNOWN
62328e115ad1dc8bb25bed2d3e49ad7c
% � Rahul Kala, IIIT Allahabad, Creative Commons Attribution-ShareAlike 4.0 International License. % The use of this code, its parts and all the materials in the text; creation of derivatives and their publication; and sharing the code publically is permitted without permission. % Please cite the work in all material...
github
francisc0garcia/Path_Planning_Simulator-master
ex_guide_timergui.m
.m
Path_Planning_Simulator-master/ex_guide_timergui.m
7,074
utf_8
97496ac8a7d192422aa0dd070017f021
function varargout = ex_guide_timergui(varargin) % EX_GUIDE_TIMERGUI - Execute graphic updates at regular intervals % MATLAB code for ex_guide_timergui.fig % EX_GUIDE_TIMERGUI, by itself, creates a new EX_GUIDE_TIMERGUI % or raises the existing singleton*. % % H = EX_GUIDE_TIMERGUI returns the handle ...
github
nagimov/cyclotron-cryopanel-master
props_thp.m
.m
cyclotron-cryopanel-master/issue_20/props_thp.m
1,593
utf_8
60fa484108698bf37912b3f75848dd36
function eval = props_thp(h,p,Name,lib) % LOOP if size(h) == size(p) %Check to ensure input matrices are the same size [N, M] = size(h); eval = zeros(N, M); for i = 1 : N for j = 1 : M eval(i,j) = prop_thp(h(i,j), p(i,j), Name, lib); end end else ...
github
nagimov/cyclotron-cryopanel-master
props_uhp.m
.m
cyclotron-cryopanel-master/issue_20/props_uhp.m
1,549
utf_8
a2a3a68e8bb9e055362b0d3ae858cd94
function eval = props_uhp(h,p,Name,lib) % LOOP if size(h) == size(p) %Check to ensure input matrices are the same size [N, M] = size(h); eval = zeros(N, M); for i = 1 : N for j = 1 : M eval(i,j) = prop_uhp(h(i,j), p(i,j), Name, lib); end end else ...
github
nagimov/cyclotron-cryopanel-master
props_htp.m
.m
cyclotron-cryopanel-master/issue_20/props_htp.m
651
utf_8
a833ce101d5a554c286d47976473d86b
function eval = props_htp(T,p,Name,lib) % LOOP if size(T) == size(p) %Check to ensure input matrices are the same size [N, M] = size(T); eval = zeros(N, M); for i = 1 : N for j = 1 : M eval(i,j) = prop_htp(T(i,j), p(i,j), Name, lib); end end else ...
github
nagimov/cyclotron-cryopanel-master
heateq.m
.m
cyclotron-cryopanel-master/issue_08/heateq.m
1,480
utf_8
5b83685cc0dfc7aa011c370488838398
function [x,fval,exitflag] = heateq(j) global mid last Tsol delta_t options = optimset('TolX', 1e-9, 'TolFun', 1e-9, ... 'MaxFunEvals', 1e7, 'MaxIter', 1e7, 'Display', 'off'); x0 = Tsol(j-1,:); [x,fval,exitflag] = fsolve ( @eqgen , x0 , options); function F = eqgen(T) %Here F compute difference between ou...
github
nagimov/cyclotron-cryopanel-master
props_thp.m
.m
cyclotron-cryopanel-master/issue_25/props_thp.m
1,593
utf_8
60fa484108698bf37912b3f75848dd36
function eval = props_thp(h,p,Name,lib) % LOOP if size(h) == size(p) %Check to ensure input matrices are the same size [N, M] = size(h); eval = zeros(N, M); for i = 1 : N for j = 1 : M eval(i,j) = prop_thp(h(i,j), p(i,j), Name, lib); end end else ...
github
nagimov/cyclotron-cryopanel-master
props_uhp.m
.m
cyclotron-cryopanel-master/issue_25/props_uhp.m
1,549
utf_8
a2a3a68e8bb9e055362b0d3ae858cd94
function eval = props_uhp(h,p,Name,lib) % LOOP if size(h) == size(p) %Check to ensure input matrices are the same size [N, M] = size(h); eval = zeros(N, M); for i = 1 : N for j = 1 : M eval(i,j) = prop_uhp(h(i,j), p(i,j), Name, lib); end end else ...
github
nagimov/cyclotron-cryopanel-master
props_htp.m
.m
cyclotron-cryopanel-master/issue_25/props_htp.m
651
utf_8
a833ce101d5a554c286d47976473d86b
function eval = props_htp(T,p,Name,lib) % LOOP if size(T) == size(p) %Check to ensure input matrices are the same size [N, M] = size(T); eval = zeros(N, M); for i = 1 : N for j = 1 : M eval(i,j) = prop_htp(T(i,j), p(i,j), Name, lib); end end else ...
github
nagimov/cyclotron-cryopanel-master
heateq.m
.m
cyclotron-cryopanel-master/issue_09/heateq.m
1,656
utf_8
4fdd1610e3afe3dc405f4feab676e9bd
function [x,fval,exitflag] = heateq(j) %Time iteration global mid last Hsol delta_t p options = optimset('TolX', 1e-7, 'TolFun', 1e-7, ... 'MaxFunEvals', 1e7, 'MaxIter', 1e7, 'Display', 'iter'); x0 = Hsol(j-1,:); [x,fval,exitflag] = fsolve ( @eqgen , x0 , options); %[],[],[],[],[],[],[], function F = eqgen(H...
github
fahimferoje/ECG-Signal-Analyzer-master
menu_bar.m
.m
ECG-Signal-Analyzer-master/menu_bar.m
3,725
utf_8
5efbabbe5544db9760bbccd5963bdc33
function varargout = menu_bar(varargin) % MENU_BAR MATLAB code for menu_bar.fig % MENU_BAR, by itself, creates a new MENU_BAR or raises the existing % singleton*. % % H = MENU_BAR returns the handle to a new MENU_BAR or the handle to % the existing singleton*. % % MENU_BAR('CALLBACK',hObject,ev...
github
fahimferoje/ECG-Signal-Analyzer-master
ECG_Analyzer.m
.m
ECG-Signal-Analyzer-master/ECG_Analyzer.m
6,048
utf_8
089c85a306dc7614242f5807b9ee4196
function varargout = ECG_Analyzer(varargin) % ECG_ANALYZER MATLAB code for ECG_Analyzer.fig % ECG_ANALYZER, by itself, creates a new ECG_ANALYZER or raises the existing % singleton*. % % H = ECG_ANALYZER returns the handle to a new ECG_ANALYZER or the handle to % the existing singleton*. % % EC...
github
fahimferoje/ECG-Signal-Analyzer-master
browse.m
.m
ECG-Signal-Analyzer-master/browse.m
5,846
utf_8
c42bfa92efd568a68f53b27adffed5fe
function varargout = browse(varargin) % BROWSE MATLAB code for browse.fig % BROWSE, by itself, creates a new BROWSE or raises the existing % singleton*. % % H = BROWSE returns the handle to a new BROWSE or the handle to % the existing singleton*. % % BROWSE('CALLBACK',hObject,eventData,handles,...
github
fahimferoje/ECG-Signal-Analyzer-master
guidefirst.m
.m
ECG-Signal-Analyzer-master/guidefirst.m
5,646
utf_8
3b0697d1f916f9467046052ab5a30116
function varargout = guidefirst(varargin) % GUIDEFIRST MATLAB code for guidefirst.fig % GUIDEFIRST, by itself, creates a new GUIDEFIRST or raises the existing % singleton*. % % H = GUIDEFIRST returns the handle to a new GUIDEFIRST or the handle to % the existing singleton*. % % GUIDEFIRST('CALL...
github
SMASHtoolbox/release-master
loadSMASH.m
.m
release-master/loadSMASH.m
9,689
utf_8
8a34c0440aedb8a5eef066e4dd422efd
% loadSMASH Make toolbox items available to MATLAB % % This function makes items from the SMASH toolbox available to MATLAB. % % Toolbox programs are added to the MATLAB path. % loadSMASH -program name % specific program % loadSMASH -program name1 name2 % multiple programs % loadSMASH -program * % all pr...
github
SMASHtoolbox/release-master
smashroot.m
.m
release-master/smashroot.m
545
utf_8
f6d8ff523d6ff357ab55b40da42262e3
% smashroot Root directory for the SMASH toolbox % % This function returns the system-dependent root directory for the SMASH % toolbox. % location=smashroot(); % The root directory is printed in the command window when no output is % requested. % smashroot(); % % See also SMASHtoolbox % % % created December 23, ...
github
SMASHtoolbox/release-master
SMASHtoolbox.m
.m
release-master/SMASHtoolbox.m
1,358
utf_8
f4837016bc0879fab4f6f2321ce55755
% % notes function varargout=SMASHtoolbox(varargin) % manage input if nargin == 0 loadSMASH(); elseif strcmpi(varargin{1},'-version') if nargout == 0 aboutSMASH(); else varargout{1}=aboutSMASH(); end end end %% function varargout=aboutSMASH(varargin) location=mfilename('fullpath'); [l...
github
SMASHtoolbox/release-master
aboutSMASH.m
.m
release-master/aboutSMASH.m
1,507
utf_8
13abbad9cbcc13cb7b218afe5e4997eb
% This function displays version information for the SMASH toolbox. % Information can be displayed in the command window: % >> aboutSMASH % or returned in a structure. % >> a=aboutSMASH; % % See also SMASH % % % created May 15, 2014 by Daniel Dolan (Sandia National Laboratories) % revised November 17, 2014 by D...
github
SMASHtoolbox/release-master
installSMASH.m
.m
release-master/installSMASH.m
3,948
utf_8
239cef628e18d3ae12455d755f343b13
% installSMASH Install SMASH toolbox % % To install the SMASH toolbox, launch this function from the toolbox % directory. % installSMASH % A warning is generated if the toolbox is already installed. To bypass % this warning and reinstall the toolbox, type: % installSMASH -force % Installation makes the toolbox ...
github
SMASHtoolbox/release-master
installSMASH.m
.m
release-master/install/installSMASH.m
4,606
utf_8
0dd351cefbb171a46c6d4e306ade82b4
% installSMASH Install SMASH toolbox % % This function installs the SMASH toolbox. % installSMASH % The user is prompted to accept the default location or specify an % alternative. A warning is generated if the toolbox is already installed. % To bypass this warning and reinstall the toolbox, type: % installSMASH ...
github
SMASHtoolbox/release-master
PointVISAR.m
.m
release-master/programs/PointVISAR/PointVISAR.m
2,403
utf_8
3d8b9806c37ace720cd6813385546a8d
% PointVISAR : VISAR analysis program % % For more information, type PointVISAR -help % created 4/11/2006 by Daniel Dolan % last modified 1/24/2007 by Daniel Dolan % last modified 4/24/2011 by Daniel Dolan function varargout=PointVISAR(varargin) % separate flags from file names file={}; arg={}; for ii=...
github
SMASHtoolbox/release-master
ReadEditRecordGUI.m
.m
release-master/programs/PointVISAR/private/ReadEditRecordGUI.m
20,221
utf_8
c1a6a1e2b61e4c497199da2e91903e3b
% read/edit records for PointVISARGUI %%%%%%%%%%%%%%%% % main routine % %%%%%%%%%%%%%%%% function fig=ReadEditRecordGUI(record) % input check if nargin<1 record=[]; end fig=findobj('Tag','PointVISAR:ReadEditRecord'); if ishandle(fig) % GUI already exists--make active figure(fig); else % genera...
github
SMASHtoolbox/release-master
AbsolutePath.m
.m
release-master/programs/PointVISAR/private/AbsolutePath.m
1,055
utf_8
3da08d84073c66159d14d802b11d2146
% AbsolutePath : determine absolute path of a file % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function func=AbsolutePath(filename,sourcepath) % input check if nargin<1 error('Error: no file name specified'); end if nargin<2 sourcepath=''; end % default value(s) if isempty(sourcepath) sourcepath=pwd...
github
SMASHtoolbox/release-master
digread.m
.m
release-master/programs/PointVISAR/private/digread.m
1,579
utf_8
6db078678ff1d5af5b616c2cc402f678
% digread : Read DIG binary files % % Usage: % [signal,time,info]=digread(filename); % % If the no input is specified, the user will be prompted for a file name % by a dialog box. The signal and its time base are stored as 1D arrays in % the first two outputs (respectively). Additional information is returned % as ...
github
SMASHtoolbox/release-master
SmartFormat.m
.m
release-master/programs/PointVISAR/private/SmartFormat.m
956
utf_8
41a6ae18021feaff96c419aa8b0e1322
% SmartFormat : intelligent output format for numerical data function [format,width]=SmartFormat(data,digits) % defaults if nargin<1 data=[]; end if isempty(data) data=0; end if nargin < 2 digits = []; end if isempty(digits) digits=6; end % determine the proper output mode limit=[1e-4 1e5]; % set by ...
github
SMASHtoolbox/release-master
SelectVariable.m
.m
release-master/programs/PointVISAR/private/SelectVariable.m
878
utf_8
c48dceadfcd5f4f59fb49414f9e12356
function cmenu=SelectVariable(varargin) cmenu=uicontextmenu('Tag','SelectVariable'); uimenu(cmenu,'Label','Velocity','Tag','velocity',... 'Callback',@SetVariable); uimenu(cmenu,'Label','Phase','Tag','phase',... 'Callback',@SetVariable); uimenu(cmenu,'Label','Calc. BIM','Tag','bim',... 'Callback',@S...