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
Roboy/roboy_darkroom-master
datadump.m
.m
roboy_darkroom-master/darkroom/scripts/YAMLREADER/datadump.m
1,072
utf_8
a6d8c5d1e2c330b66626e585e43ff721
function datadump(data) recurse(data, 0, []); end function result = recurse(data, level, addit) indent = repmat(' | ',1,level); if iscell(data) && ~ismymatrix(data) result = iter_cell(data, level, addit); elseif isstruct(data) result = iter_struct(data, level, addit); else...
github
Roboy/roboy_darkroom-master
ReadYaml.m
.m
roboy_darkroom-master/darkroom/scripts/YAMLREADER/ReadYaml.m
2,780
utf_8
434901add453af4ae87764737b8b421c
%========================================================================== % Actually reads YAML file and transforms it using several mechanisms: % % - Transforms mappings and lists into Matlab structs and cell arrays, % for timestamps uses DateTime class, performs all imports (when it % finds a struct ...
github
Roboy/roboy_darkroom-master
doinheritance.m
.m
roboy_darkroom-master/darkroom/scripts/YAMLREADER/doinheritance.m
3,279
utf_8
8ab1f9998935c4994858f87c9669cac9
%========================================================================== % Searches through some hierarchy and performs inheritance. Whenever finds % struct field named 'parent' it tries to find all points, defined by its % content and uses them as the struct ancestors. Example: % % Given: % % s.a.a = 1 % ...
github
Roboy/roboy_darkroom-master
WriteYaml.m
.m
roboy_darkroom-master/darkroom/scripts/YAMLREADER/WriteYaml.m
7,008
utf_8
9b2a88b3fbb0257a77af09222129699c
%========================================================================== % Recursively walks through a Matlab hierarchy and converts it to the % hierarchy of java.util.ArrayListS and java.util.MapS. Then calls % Snakeyaml to write it to a file. %===================================================================...
github
Roboy/roboy_darkroom-master
selftest_yamlmatlab.m
.m
roboy_darkroom-master/darkroom/scripts/YAMLREADER/Tests/selftest_yamlmatlab.m
2,954
utf_8
4b0ea27db95878c651e0c46855f39e18
function selftest_yamlmatlab(varargin) % This function tests consistency of YAMLMatlab, by default, the results % are stored in selftest_report.html in current work folder. % Example % >> selftest_yamlmatlab() % >> selftest_yamlmatlab(outFileName) % % %=================================================================...
github
Roboy/roboy_darkroom-master
test_ReadYaml.m
.m
roboy_darkroom-master/darkroom/scripts/YAMLREADER/Tests/test_ReadYaml.m
8,883
utf_8
1647e455763d95a6c10948a007741f02
function stat = test_ReadYaml() % this function tests reading in the yaml file stat.ok = 1; stat.desc = ''; try %stat.test_ReadYaml_SimpleStructure = test_ReadYaml_SimpleStructure(); %stat.test_ReadYaml_DateTime = test_ReadYaml_DateTime(); fprintf('Testing read '); stat.test_RY_Matrices = test_RY_...
github
Roboy/roboy_darkroom-master
test_WriteYaml.m
.m
roboy_darkroom-master/darkroom/scripts/YAMLREADER/Tests/test_WriteYaml.m
1,745
utf_8
de37cbde8a33d40a7b1f05ef8e7f16cf
function stat = test_WriteYaml() stat.ok = 1; stat.desc = ''; try fprintf('Testing write '); stat.test_WY_Matrices = test_WY_Universal(PTH_PRIMITIVES(), 'matrices'); fprintf('.'); stat.test_WY_FloatingPoints = test_WY_Universal(PTH_PRIMITIVES(), 'floating_points'); fprintf('.'); stat.test_WY_In...
github
Roboy/roboy_darkroom-master
calibration.m
.m
roboy_darkroom-master/darkroom/scripts/calibration/calibration.m
7,516
utf_8
9d4ef0c4049d2da1a69de8df06209b24
%% read the relative sensor locations from yaml clear all close all config = ReadYaml('calibration.yaml'); rel_pos = cell2mat(config.sensor_relative_locations(:,2:end)); %% pose estimation lighthouse_pose = eye(4); % this is lighthouse to world pose lighthouse_pose(2,4) = 1 numberOfFrames = 100 plot = false pose_g...
github
zhaohuajing/V2V-network-sensitivity-analysis-master
mean_err_MC_uniform.m
.m
V2V-network-sensitivity-analysis-master/mean_err_MC_uniform.m
2,596
utf_8
d1b354e64d6192a89888453831bff41e
%Numerically calculate an unbiased estimator for the expected CMM error by Monte Carlo simulation function [nv,m_err]=mean_err_MC_uniform(sig_n2) %load rand_angle.mat % for N_v=15:15 % N_v % angle=2*pi*rand(1,10); % angle=[4.18473579635023,4.76497989105900,1.87071752652456,3.01069347870357,1.920077...
github
zhaohuajing/V2V-network-sensitivity-analysis-master
MC_analytic.m
.m
V2V-network-sensitivity-analysis-master/MC_analytic.m
1,047
utf_8
075393ab09db204332273466018d9689
%Numerically calculate an unbiased estimator for the expected CMM error at a crossroad by Monte Carlo simulation function [nv,m_err]=MC_analytic(sig) for N_v_each=3:12; % sig2=0.09; % sig=sqrt(sig2); for mm=1:5000 X1=max(randn(1,N_v_each)*sig); X2=max(randn(1,N_v_each)*sig); X3=max(randn(1,N_v_each...
github
skojaku/km_config-master
km_config.m
.m
km_config-master/src/matlab/km_config.m
1,100
utf_8
6a78d3e991ee915e825171939fb5ac78
% % MATLAB client for the KM-config algorithm % % % An algorithm for finding multiple core-periphery pairs in networks % % % Core-periphery structure requires something else in the network % Sadamori Kojaku and Naoki Masuda % Preprint arXiv:1710.07076 % % % Please do not distribute without contacting the authors. % % ...
github
BMHLab/CElegansConnectomeGeneExpression-master
compareGOannotations.m
.m
CElegansConnectomeGeneExpression-master/Analysis/Genes/compareGOannotations.m
3,845
utf_8
7f9635759e746ee89717d759e5416403
% check if there are genes in worm from the categories used in mouse % get a list of go categories in mouse and compare to the list in worm (for % all posible genes) % ------------------------------------------------------------------------------ % read in all txt files from mouse and combine unique GO categories in a ...
github
BMHLab/CElegansConnectomeGeneExpression-master
AdjLabelNodes.m
.m
CElegansConnectomeGeneExpression-master/Analysis/Both/AdjLabelNodes.m
2,442
utf_8
efff47d0cbf1f2161c5dedaa203b43e4
% Ben Fulcher, 2014-10-01 % Labels nodes according to their links to/from the rich club % Modified by Taqi Ali 17-7-15 % ------------------------------------------------------------------------------ function [nodeLabels,labelNames,nodeData] = AdjLabelNodes(labelWhat,Adj,extraParam,networkType) if nargin < 4 netw...
github
BMHLab/CElegansConnectomeGeneExpression-master
coexpELCHUncon.m
.m
CElegansConnectomeGeneExpression-master/Analysis/Both/coexpELCHUncon.m
3,600
utf_8
c8c9715b1605bf0a956bbd4428bc0bd0
%% [p, stats] = coexpConnUncon (C, G, connectivityType, anatomyPart, dorankedTest) % ------------------------------------------------------------------------------ % function compares and plots coexpression between pairs of neurons that are connected with electrical, chemical synapses as well as pairs of unconnected ne...
github
BMHLab/CElegansConnectomeGeneExpression-master
coexpRecUnidirUncon.m
.m
CElegansConnectomeGeneExpression-master/Analysis/Both/coexpRecUnidirUncon.m
2,470
utf_8
6d35b058bd9a3ac9c65d337b2ff4b552
% ------------------------------------------------------------------------------ % Aurina Arnatkeviciute % ------------------------------------------------------------------------------ % script for checking reciplocally/unidirctionally connected and unconnected link coexpression using % Pearson coexpression % --------...
github
BMHLab/CElegansConnectomeGeneExpression-master
coexpConnUncon.m
.m
CElegansConnectomeGeneExpression-master/Analysis/Both/coexpConnUncon.m
3,265
utf_8
8794762ceb527d6f932a3fff97cc603f
%% [p, stats] = coexpConnUncon (C, G, connectivityType, anatomyPart, dorankedTest) % ------------------------------------------------------------------------------ % function compares and plots coexpression for connected and unconnected % links in Celegans connectome. % -------------------------------------------------...
github
BMHLab/CElegansConnectomeGeneExpression-master
giveDistributions.m
.m
CElegansConnectomeGeneExpression-master/Analysis/Both/giveDistributions.m
2,510
utf_8
9cb9ba4d9fd2592173dbf66cdfc7942b
% ------------------------------------------------------------------------------ % Aurina Arnatkeviciute, % make violin plots for rich/feeder/peripheral/unconnected for a chosen hub % threshold. Can change to lineage matrix instead of coexpression matrix % ---------------------------------------------------------------...
github
BMHLab/CElegansConnectomeGeneExpression-master
degreeDependence.m
.m
CElegansConnectomeGeneExpression-master/Analysis/Both/degreeDependence.m
8,980
utf_8
624d87ab72d87977d1887cafedcc8488
%% [data, numberHere] = degreeDependence(C,G, measureTouse, doStrength, conType, chooseCategory, includingCategory, chooseRigth, useKinKout, doNonOverlap, categoryNoOverlap) % ------------------------------------------------------------------------------ % function plots coexpression for links involving a specific ca...
github
BMHLab/CElegansConnectomeGeneExpression-master
RichClubPhiNorm_A.m
.m
CElegansConnectomeGeneExpression-master/Analysis/Connectome/RichClubPhiNorm_A.m
5,364
utf_8
86916b0bffc1f3fd416b8b7be62d737e
function [PhiNorm,PhiTrue,PhiRand, rAdj] = RichClubPhiNorm_A(Adj,kmax,numIter,numRepeats,WhatTypeNetwork,whatNullModel, wei_freq) % RichClubPhiNorm % % INPUTS: % Adjacency matrix, Adj % Compares to m randomly permuted version of the same matrix % Does QE iterations, where E is the number of edges % In the case of weigh...
github
BMHLab/CElegansConnectomeGeneExpression-master
propLinkDegree.m
.m
CElegansConnectomeGeneExpression-master/Analysis/Connectome/propLinkDegree.m
2,564
utf_8
863e43052e46e7a4057cdd7fa6f41489
%% propTypesDegree(C) % ------------------------------------------------------------------------------ % Function plots the proportion of interneurons/motor/sensory/polymodal neurons as a function of degree. %------------------------------------------------------------------------------- % Inputs % --------------------...
github
BMHLab/CElegansConnectomeGeneExpression-master
RichClubPhiNorm.m
.m
CElegansConnectomeGeneExpression-master/Analysis/Connectome/RichClubPhiNorm.m
9,767
utf_8
a22de308555e4efd49481ebf187f09f1
function [PhiNorm,PhiTrue,PhiRand] = RichClubPhiNorm(Adj,kmax,numIter,numRepeats,WhatTypeNetwork,whatNullModel) % RichClubPhiNorm % % INPUTS: % Adjacency matrix, Adj % Compares to m randomly permuted version of the same matrix % Does QE iterations, where E is the number of edges % In the case of weighted networks, THIS...
github
BMHLab/CElegansConnectomeGeneExpression-master
NeuronRegionFinder.m
.m
CElegansConnectomeGeneExpression-master/DataProcessing/NeuronRegionFinder.m
4,349
utf_8
c7115a0bce8edb2694ed4d71204db3cf
function C = NeuronRegionFinder(C,beVocal) %------------------------------------------------------------------------------- % 1. Reads in the hierarchy file (from RetrieveHierarchy.py) % 2. Creates a translation table, and assigns all neurons to specific regions % 3. Outputs results to matlab file: CElegans_Connectivit...
github
BMHLab/CElegansConnectomeGeneExpression-master
GiveMeQuantileMeans.m
.m
CElegansConnectomeGeneExpression-master/PeripheralFunctions/GiveMeQuantileMeans.m
950
utf_8
5226c27e131644e8b97c99433b8a53c4
% Outputs the xRange used for the quantiles % Outputs the means of the yData provided in each quantiled-bin % Outputs the indices of the data used in each quantile (as a cell) % ------------------------------------------------------------------------------ % Ben Fulcher, 2014-11-05 function [xRange,yMeans,affectedInd...
github
BMHLab/CElegansConnectomeGeneExpression-master
BF_thetime.m
.m
CElegansConnectomeGeneExpression-master/PeripheralFunctions/BF_thetime.m
2,985
utf_8
f3ce0b3b40c5a21901c4ce987dc0e7cc
% ------------------------------------------------------------------------------ % BF_thetime % ------------------------------------------------------------------------------ % % Converts the input, tsec, a duration of time in seconds, into an appropriate % string for output (i.e., converts to minutes or hours or days...
github
BMHLab/CElegansConnectomeGeneExpression-master
communicability.m
.m
CElegansConnectomeGeneExpression-master/PeripheralFunctions/communicability.m
1,229
utf_8
54866b44e768f75fee441f69e6c20f5d
% ------------------------------------------------------------------------------ % Ben Fulcher, 2014-09-18 % ------------------------------------------------------------------------------ % Quick implementation of communicability, a measure introduced by Estrada and % Hatano (2008). % %---INPUTS: % Adj, the adjacency ...
github
BMHLab/CElegansConnectomeGeneExpression-master
ClusterDown.m
.m
CElegansConnectomeGeneExpression-master/PeripheralFunctions/ClusterDown.m
4,972
utf_8
47d0d299d41fca3513d3959292e96e34
% Originally TSQ_localcorrm, used in fetal heart rate analysis work. % Takes in a distance matrix, and clusters it down to a reduced set % Clusters down a set of operations based on their behavior % ------------------------------------------------------------------------------ % Ben Fulcher, 2014-06-25 % Ben Fulcher, 2...
github
BMHLab/CElegansConnectomeGeneExpression-master
RemoveNaN_DistMat.m
.m
CElegansConnectomeGeneExpression-master/PeripheralFunctions/RemoveNaN_DistMat.m
808
utf_8
9e6741adf3e66bc6c3077a2fd7e31255
% Removes NaN entries from an input distance matrix, R % ------------------------------------------------------------------------------ % Ben Fulcher, 2014-06-25 % ------------------------------------------------------------------------------ function [R, keepers] = RemoveNaN_DistMat(R) keepers = logical(ones(length(R...
github
BMHLab/CElegansConnectomeGeneExpression-master
BF_NaNCov.m
.m
CElegansConnectomeGeneExpression-master/PeripheralFunctions/BF_NaNCov.m
2,271
utf_8
0a261b6d7bf567015ac1fc6a9d689663
% Covariance including NaNs for an input matrix, X % Not exact, because removes full mean across all values, rather than across % overlapping range, but should a reasonable approximation when number of NaNs % is small. % Output can be either the covariance matrix, or matrix of correlation % coefficients, depending on t...
github
BMHLab/CElegansConnectomeGeneExpression-master
BF_NormalizeMatrix.m
.m
CElegansConnectomeGeneExpression-master/PeripheralFunctions/BF_NormalizeMatrix.m
10,527
utf_8
cbe478d5295aa270b1b6953658b08fdc
% ------------------------------------------------------------------------------ % BF_NormalizeMatrix % ------------------------------------------------------------------------------ % % Normalizes all columns of an input matrix. % %---INPUTS: % F, the input matrix % normopt, the normalization method to use (see body...
github
BMHLab/CElegansConnectomeGeneExpression-master
PlotCorrMat.m
.m
CElegansConnectomeGeneExpression-master/PeripheralFunctions/PlotCorrMat.m
1,444
utf_8
9aba8801d74815c2322704078cf9aad7
% ------------------------------------------------------------------------------ % Ben Fulcher, 2014-06-24 % ------------------------------------------------------------------------------ function PlotCorrMat(D_corr,Minus1To1) if nargin < 2 || isempty(Minus1To1) Minus1To1 = 1; % assume range from -1 to 1 end % M...
github
BMHLab/CElegansConnectomeGeneExpression-master
BF_pdist.m
.m
CElegansConnectomeGeneExpression-master/PeripheralFunctions/BF_pdist.m
7,563
utf_8
a9994650d52efdec2c584a240d2e4a04
% ------------------------------------------------------------------------------ % BF_pdist % ------------------------------------------------------------------------------ % % Same as pdist but then goes through and fills in NaNs with indiviually % calculated values using an overlapping range of good values. % % HIST...
github
BMHLab/CElegansConnectomeGeneExpression-master
BF_removeNaNColumns.m
.m
CElegansConnectomeGeneExpression-master/PeripheralFunctions/BF_removeNaNColumns.m
1,138
utf_8
ab75a92b242a05c5c2f8817b832a70fa
% ------------------------------------------------------------------------------ % Removes columns with NaNs in them % ------------------------------------------------------------------------------ % Ben Fulcher, 2014-09-23 Added parameter that allows some proportion of bad values % Ben Fulcher, 2014-07-08 % ----------...
github
jfrascon/SLAM_AND_PATH_PLANNING_ALGORITHMS-master
arrow.m
.m
SLAM_AND_PATH_PLANNING_ALGORITHMS-master/10-EXTRA_RESOURCES/MATLAB_SCRIPTS/arrow.m
59,561
utf_8
c7638a77607ba7fa39d3d641f7bd4ce7
function [h,yy,zz] = arrow(varargin) % 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 with 2 or 3 % columns), and returns the graphics handle of the arrow(s). % % ARROW uses the mouse (cl...
github
jfrascon/SLAM_AND_PATH_PLANNING_ALGORITHMS-master
compute_derivative.m
.m
SLAM_AND_PATH_PLANNING_ALGORITHMS-master/10-EXTRA_RESOURCES/MATLAB_SCRIPTS/compute_derivative.m
315
utf_8
c9a63637037ba13f518a21e57aa78124
function [jumps] = compute_derivative(scan, min_dist) jumps = zeros(1, length(scan)); for i =2:length(scan)-1 l = scan(i-1); r = scan(i+1); if(l > min_dist && r > min_dist) der = (r - l)/2.0; jumps(i) = der; else jumps(i) = 0; jumps.append(0); end end end
github
albanie/mcnDatasets-master
getAfewImdb.m
.m
mcnDatasets-master/afew3.0/getAfewImdb.m
7,968
utf_8
e0c2c8792224231b31c5422ab050db1d
function imdb = getAfewImdb(opts, varargin) %GETAFEWIMDB AFEW 3.0 imdb construction % IMDB = GETAFEWIMDB(OPTS) builds an image/video database for training and % testing on the AFEW 3.0 dataset % % GETAFEWIMDB(..'name', value) accepts the following options: % % `includeTest` :: false % whether to include face t...
github
albanie/mcnDatasets-master
printCocoResults.m
.m
mcnDatasets-master/coco/printCocoResults.m
2,339
utf_8
0050c5f890a3045bd3578931851f99cf
function res = printCocoResults(cacheDir, varargin) %PRINTCOCORESULTS print summary of coco results % % Copyright (C) 2017 Samuel Albanie % Licensed under The MIT License [see LICENSE.md for details] opts.expTag = '' ; opts.orientation = 'portrait' ; opts = vl_argparse(opts, varargin) ; % handle either a sin...
github
albanie/mcnDatasets-master
getCocoImdb.m
.m
mcnDatasets-master/coco/getCocoImdb.m
7,468
utf_8
ffd12136cf3dab046980e1204fd96fe1
function imdb = getCocoImdb(opts) %GETCOCOIMDB coco imdb construction % IMDB = GETCOCOIMDB(OPTS) builds an image database for training and % testing on the coco dataset % % Copyright (C) 2017 Samuel Albanie % Licensed under The MIT License [see LICENSE.md for details] imdb = cocoSetup(opts) ; classIds = 1:numel(...
github
albanie/mcnDatasets-master
getEnterfaceImdb.m
.m
mcnDatasets-master/enterface/getEnterfaceImdb.m
6,163
utf_8
5ea10b5523c5a127fa92868c620706d4
function imdb = getEnterfaceImdb(opts, varargin) %GETENTERFACE Enterface imdb construction % IMDB = GETENTERFACE(OPTS) builds an image/video database for training and % testing on the Enterface dataset % % Copyright (C) 2018 Samuel Albanie % Licensed under The MIT License [see LICENSE.md for details] opts.generate...
github
albanie/mcnDatasets-master
getSfewImdb.m
.m
mcnDatasets-master/sfew/getSfewImdb.m
2,881
utf_8
92f19b9656b9963c9bbbfb9d468dc823
function imdb = getSfewImdb(dataDir) %GETSFEWIMDB Returns imdb (the image database) % IMDB = GETSFEWIMDB(DATADIR) loads the SFEW image datbase. This % functions assumes that DATADIR is directory containing a collection % of images in png format arranged in three folders 'Train', 'Val' % and 'Test'. 'Train' an...
github
albanie/mcnDatasets-master
getFerPlusImdb.m
.m
mcnDatasets-master/FER2013+/getFerPlusImdb.m
6,404
utf_8
03a434a2ba9a28fb6cc3b6776e55d443
function imdb = getFerPlusImdb(dataDir, varargin) %GETFERPLUSIMDB Returns imdb (the image database) % IMDB = GETFERPLUSIMDB(DATADIR, VARARGIN) loads the FER+ image datbase. % % GETFERPLUSIMDB(..'name', value) accepts the following options: % % `dataType` :: 'CNTK' % This option which labels and images are incl...
github
albanie/mcnDatasets-master
getFerImdb.m
.m
mcnDatasets-master/FER2013/getFerImdb.m
3,726
utf_8
c07a753c36c98f7af25539f20f2c75d4
function imdb = getFerImdb(dataDir) %GETFERIMDB Returns imdb (the image database) % IMDB = GETFERIMDB(DATADIR) loads the FER image datbase. This functions % assumes that the raw data `fer2013.csv` has been downloaded and placed % in DATADIR. % % Copyright (C) 2018 Samuel Albanie % Licensed under The MIT License [se...
github
albanie/mcnDatasets-master
getCombinedPascalImdb.m
.m
mcnDatasets-master/pascal/getCombinedPascalImdb.m
6,155
utf_8
5438bfc85dc18199302018cc40fe2863
function imdb = getCombinedPascalImdb(opts, varargin) % GETCOMBINEDPASCALIMDB - load Pascal IMDB file % IMDB = GETCOMBINEDPASCALIMDB(OPTS) constructs an IMDB for the % Pascal VOC data spanning the 2007 and 2012 dataset (commonly referred % to as the "0712" dataset in object detection. % % GETCOMBINEDPASCALIMDBP...
github
albanie/mcnDatasets-master
vocSetup.m
.m
mcnDatasets-master/pascal/vocSetup.m
11,730
utf_8
cf914b40f0b77ff3859f66c2e2563a3e
function imdb = vocSetup(varargin) % VOCSETUP download and setup data from the Pascal VOC challenge % % This script was sourced from the Matconvnet-fcn project, written by % Sebastien Erhardt and Andrea Vedaldi: % https://github.com/vlfeat/matconvnet-fcn opts.edition = '07' ; opts.dataDir = fullfile('data','voc07...
github
albanie/mcnDatasets-master
eval_voc_cls.m
.m
mcnDatasets-master/pascal/helpers/eval_voc_cls.m
2,667
utf_8
2ecdf767a03c8f7c347660d9b63b00cf
function res = eval_voc_cls(cls, image_ids, scores, VOCopts, varargin) % RES = EVAL_VOC(CLS, IMAGE_IDS, SCORES, VOCOPTS) % Use the VOCdevkit to evaluate classifications specified in boxes % for class cls against the ground-truth boxes in the image % database IMDB. Results files are saved with an optional suffix. ...
github
albanie/mcnDatasets-master
eval_voc.m
.m
mcnDatasets-master/pascal/helpers/eval_voc.m
3,584
utf_8
1894c1f0ce5c9212bd5dc7325dfc9bbf
function res = eval_voc(cls, image_ids, bboxes, scores, VOCopts, varargin) % RES = EVAL_VOC(CLS, IMAGE_IDS, BBOXES, SCORES, VOCOPTS) % Use the VOCdevkit to evaluate detections specified in boxes % for class cls against the ground-truth boxes in the image % database IMDB. Results files are saved with an optional s...
github
albanie/mcnDatasets-master
getRmlImdb.m
.m
mcnDatasets-master/rml/getRmlImdb.m
5,299
utf_8
891c2e84680f145e95cb207c55c406d4
function imdb = getRmlImdb(opts, varargin) %GETRMLIMDB Rml imdb construction % IMDB = GETRMLIMDB(OPTS) builds an image/video database for training and % testing on the RML dataset % % Copyright (C) 2018 Samuel Albanie % Licensed under The MIT License [see LICENSE.md for details] opts.generateWavs = true ; opts =...
github
q-omar/gravity_anomalies-master
grav_pot_point.m
.m
gravity_anomalies-master/matlab_implementation/grav_pot_point.m
307
utf_8
e8daed0e0a3699dea2338cd54278e2f5
%GOPH 547-Gravity and Magnetics %Safian Omar Qureshi %ID: 10086638 %TA: Ye Sun %% Question 1a function [U]=grav_pot_point(x,xm,m,G) %defining gravity potential function r_norm=norm(x-xm); %simply using formula U=(G*m)./r_norm; end %these will be used in other parts of the code
github
q-omar/gravity_anomalies-master
grav_eff_point.m
.m
gravity_anomalies-master/matlab_implementation/grav_eff_point.m
369
utf_8
d201104f25cc68482ed0caa23d8be8d7
%GOPH 547-Gravity and Magnetics (W2017) %Safian Omar Qureshi %ID: 10086638 %TA: Ye Sun %% Question 1b function [gz]=grav_eff_point(x,xm,m,G) %defining gravity effect function r_norm=norm(x-xm); %simply using formula r3=r_norm^3; dz=(x(3)-xm(3)); gz=(G*m*dz)/r3; end ...
github
xiaosonghe/DynamicFunctionalConnectivity-master
S4ModularityMeasures.m
.m
DynamicFunctionalConnectivity-master/S4ModularityMeasures.m
1,059
utf_8
28d9089e18e0b75bb522eb263277638c
% Calculating MA, Flexibility, LI, P, Z, FCw and FCb clear all; sbj=importdata('E:\VerbGeneration_network\sbj.txt'); System=[1;1;1;2;2;2;2;2;3;3;3;4;4;4;4;4];% Define System for LI and I, R calculation parfor t=1:length(sbj) X=load(['E:\VerbGeneration_network\6CommunityMatrix\' sbj{t} '.mat']); pathD=['...
github
xiaosonghe/DynamicFunctionalConnectivity-master
S6NullModelMeasures.m
.m
DynamicFunctionalConnectivity-master/S6NullModelMeasures.m
1,889
utf_8
fae0f8439cbcaffb12cfb602dd83c24a
% Calculating Flexibility and MA clear all; sbj=importdata('E:\VerbGeneration_network\sbj.txt'); System=[1;1;1;2;2;2;2;2;3;3;3;4;4;4;4;4];% Define System for LI and I, R calculation parfor t=1:length(sbj) x=load(['E:\VerbGeneration_network\8RandomCommunity\' sbj{t} '.mat']); pathD=['E:\VerbGeneration_ne...
github
xiaosonghe/DynamicFunctionalConnectivity-master
S5RandomCommunity.m
.m
DynamicFunctionalConnectivity-master/S5RandomCommunity.m
4,936
utf_8
6d95f5a97f8291e0a715e8fe46fd2dbb
% Generating Null Models clear all; sbj=importdata('E:\VerbGeneration_network\sbj.txt'); gamma = 1; omega = 0.4; % Based on Chai et al 2016 CC parfor t=1:length(sbj) X=load(['E:\VerbGeneration_network\5tDecomposedSignals\' sbj{t} '.mat'],'D2'); pathD=['E:\VerbGeneration_network\8RandomCommunity\' sbj{...
github
xiaosonghe/DynamicFunctionalConnectivity-master
S2ROISignalExtract.m
.m
DynamicFunctionalConnectivity-master/S2ROISignalExtract.m
816
utf_8
b4aa37c89259eabb7055f0f84f518721
% Extract ROI Signal % Order: LIFGorb, LIFG, LMFG, LAT, LMAT, LMPT, LPT, LAG, RIFGorb, RIFG, RMFG, RAT, RMAT, RMPT, RPT, RAG clear all; sbj=importdata('E:\VerbGeneration_network\sbj.txt'); parfor i=1:length(sbj) roi_filest = spm_get('files',['E:\VerbGeneration_network\4IndividualROIs\' sbj{i}],'*roi.mat'); ...
github
xiaosonghe/DynamicFunctionalConnectivity-master
S3CommunityMatrix.m
.m
DynamicFunctionalConnectivity-master/S3CommunityMatrix.m
2,321
utf_8
06bb3a5eb523023ff2e1fbfb87078632
% Generate the community assignments matrix clear all; sbj=importdata('E:\VerbGeneration_network\sbj.txt'); gamma = 1; omega = 0.4; % Based on Chai et al 2016 CC parfor t=1:length(sbj) X=load(['E:\VerbGeneration_network\5tDecomposedSignals\' sbj{t} '.mat'],'D2'); pathD=['E:\VerbGeneration_network\6Commu...
github
Erin-H/Activity-Recognition-master
LDA.m
.m
Activity-Recognition-master/LDA.m
8,682
utf_8
6fa50a0b489e557f036d16d4122c282d
function [eigvector, eigvalue] = LDA(gnd,options,data) % LDA: Linear Discriminant Analysis % % [eigvector, eigvalue] = LDA(gnd, options, data) % % Input: % data - Data matrix. Each row vector of fea is a data point. % gnd - Colunm vector of the label information...
github
melaniafilosa/ray-mapping-fresnel-lens-master
mc_raytracing.m
.m
ray-mapping-fresnel-lens-master/mc_raytracing.m
3,123
utf_8
767c6a36c4ffed235827ccde07dc7265
% This function computes the ray tracing given the position and the % direction of the ray and the optical system function [zout, thetaout,last_surface] = ... mc_raytracing(surfaces, z , tau, variables) graf = 0; a = 2; k = -1; % (x,z) = coordinates of the initial position ray.x = surfaces(1).x(1); ray...
github
melaniafilosa/ray-mapping-fresnel-lens-master
bisection_method.m
.m
ray-mapping-fresnel-lens-master/bisection_method.m
2,217
utf_8
7b0f651017dede5a9b1f9528a7c54b28
% This function uses the bisection method top find the rays with % the same number of reflections of A function [C1, targetC1,pathC1, C2, targetC2, pathC2] = ... bisection_method(A, B, targetA,targetB, pathA, surfaces, ... action, variables) %pathA = [pathA, A.surface]; ...
github
melaniafilosa/ray-mapping-fresnel-lens-master
reflect.m
.m
ray-mapping-fresnel-lens-master/reflect.m
1,118
utf_8
8c88c4d9eac2b5335667033ce177209b
% This function computes the direction of the reflected ray function [ray] = reflect(ray, surface, k) % Compute the normal to the surface "cup" h = 5; l = 10; d = 0.5; r = sqrt((l-d)^2+h^2); if(k==2|| k==3) n = 1.5; L = r + n*d; A = (1-n^2); B = 2*n*(n*l-L); C = ray.z^2-...
github
melaniafilosa/ray-mapping-fresnel-lens-master
ellipse_intersection.m
.m
ray-mapping-fresnel-lens-master/ellipse_intersection.m
3,981
utf_8
8cc25ad3977848522ba6a5bc7cb55191
% This function computes the intersection between the ray and the ellips % with axis a and b where a<b function [xn,zn, s, valid] = ellipse_intersection(ray, surface, variables) graph = 0; s = 0; % Plot the ray on the surface if graph % figure(7) % hold on % plot(ray.x, ray.z , ' * y') end valid = 0; % Parameters o...
github
melaniafilosa/ray-mapping-fresnel-lens-master
mc_fill_vector.m
.m
ray-mapping-fresnel-lens-master/mc_fill_vector.m
378
utf_8
2d8d00d168ede3e8206caf25b29befb5
% This function fills in a vector all the rays informations function mc_fill_vector(z,t,zout,tout,path, energy) global mc_vector mc_vector.zin = [mc_vector.zin; z]; mc_vector.zout = [mc_vector.zout; zout]; mc_vector.tauin = [mc_vector.tauin; t]; mc_vector.tauout = [mc_vector.tauout; tout]; mc_vector.path = [mc_vector...
github
melaniafilosa/ray-mapping-fresnel-lens-master
Create_variables.m
.m
ray-mapping-fresnel-lens-master/Create_variables.m
336
utf_8
4910a5170d3f14ced4636ff1d69acc59
% This function defines the parameters that caracterize the equation of the Lens function [variables] = Create_variables(); variables.h = 5; variables.l = 10; variables.d = 0.5; variables.r = sqrt((variables.l-variables.d)^2+variables.h^2); % index of refraction variables.n = 1.5; variables.L = variables.r + variable...
github
melaniafilosa/ray-mapping-fresnel-lens-master
ellipse_intersection1.m
.m
ray-mapping-fresnel-lens-master/ellipse_intersection1.m
3,651
utf_8
abd742c8b3c1d132b3ecaae306b33491
% This function computes the intersection between the ray and the ellips % with axis a and b where a<b function [xn,zn, s, valid] = ellipse_intersection1(ray, surface) graph = 0; s = 0; % Plot the ray on the surface if graph % figure(7) % hold on % plot(ray.x, ray.z , ' * y') end valid = 0; h = 5; l = 10; d = 0.5; ...
github
melaniafilosa/ray-mapping-fresnel-lens-master
mc_fill_vector1.m
.m
ray-mapping-fresnel-lens-master/mc_fill_vector1.m
394
utf_8
c49df8c084ffa9eb34d2c981a9e0b8cc
% This function fills in a vector all the rays informations function mc_fill_vector1(z,t,zout,tout,path, energy) global mc_vector1 mc_vector1.zin = [mc_vector1.zin; z]; mc_vector1.zout = [mc_vector1.zout; zout]; mc_vector1.tauin = [mc_vector1.tauin; t]; mc_vector1.tauout = [mc_vector1.tauout; tout]; mc_vector1.path =...
github
melaniafilosa/ray-mapping-fresnel-lens-master
interpolation.m
.m
ray-mapping-fresnel-lens-master/interpolation.m
2,038
utf_8
272c270078518ec9c56ea1c9ab3f1a3a
% This function does an interpolation between targetA and targetB function intensity = interpolation(intensity, targetA, targetB, .... pathA, A, B,variables, surfaces, action) for z = targetA.z+0.01:(targetB.z-targetA.z-0.02)/500:targetB.z-0.01 % trace the rays with z coordinate...
github
melaniafilosa/ray-mapping-fresnel-lens-master
raytracing.m
.m
ray-mapping-fresnel-lens-master/raytracing.m
1,732
utf_8
b6f87e6f0594e92f7ee3dc34feca39f9
% This function computes the ray tracing given the position and the % direction of the ray and the optical system function [reflected, transmitted, R, T] = ... raytracing(ray, surfaces, variables) k = -1; x0 = ray.x; z0 = ray.z; % (x,z) = coordinates of the initial position % ray.x = surfaces(4).x(1); %...
github
melaniafilosa/ray-mapping-fresnel-lens-master
intensity_computation.m
.m
ray-mapping-fresnel-lens-master/intensity_computation.m
6,646
utf_8
a76e39fb7277d62f8e82866962e15983
% This function computes the intensity at the target % along a given direction it considers function intensity = intensity_computation(A, B, targetA, targetB,... pathA,pathB,surfaces, action, variables,... intensity) max_number_of...
github
melaniafilosa/ray-mapping-fresnel-lens-master
new_distances.m
.m
ray-mapping-fresnel-lens-master/new_distances.m
1,347
utf_8
4829f3d1201529d0a875fd2764111c1e
% This functions calculates the number of the % next surface that the ray hit function [k] = new_distances(xn,zn,ray,s,valid) N=length(xn); % d = vector with the distances between the ray % and all the intersection points of the ray % with the optical lines d = sqrt((xn-ray.x).^2+(zn-ray.z).^2); ...
github
melaniafilosa/ray-mapping-fresnel-lens-master
distances.m
.m
ray-mapping-fresnel-lens-master/distances.m
1,841
utf_8
ea49434cacd67c7297546090b45388d3
% This function computes the distances between the initial position of % the ray and all crossing points of the ray with the 10 surfaces of the % TIR-collimator. % It also computes the minimal distance % (without considering distances = 0 and negative directions) % Meaning of the most important variables % d(t) = dis...
github
melaniafilosa/ray-mapping-fresnel-lens-master
line_intersection.m
.m
ray-mapping-fresnel-lens-master/line_intersection.m
1,047
utf_8
7e92fa1a4d5db606d99367f88076f9a6
% This function compute the intersection point between the source and the % rays % s = parameter for the ray parameterization % (x,z) = coordinates of the initial point % theta = initial angle with respect to the normal of the surface % xn = x- s*sin(theta) := x-coordinate of the intersection point % zn = z+ s*c...
github
hsun2022/CrowdComputing-master
crowd_model.m
.m
CrowdComputing-master/seek-plus/crowd_model.m
1,678
utf_8
bc956c57d0029eb0368c986c92744497
function model = crowd_model(L,varargin) %%parameters.... Ntask =size(L,1); Nwork=size(L,2); %neiborhods NeibTask = cell(1,Ntask); for task_j = 1:Ntask NeibTask{task_j} = find(L(task_j,:)); end NeibWork = cell(Nwork,1); for work_i = 1:Nwork NeibWork{work_i} = find(L(:,work_i))'; end model=init_model(); Labe...
github
hsun2022/CrowdComputing-master
L_simulation_noNoise.m
.m
CrowdComputing-master/seek-plus/L_simulation_noNoise.m
994
utf_8
f24a6a31d78cb2b78138be45ee2fde8a
function [L,groundtruth] = L_simulation_noNoise(Ntask,Nworker,Ndom,Redun,ndom) p0 = 0.05; p1 = 0.75; %prop = 0.5; groundtruth = zeros(1,Ntask); L = zeros(Ntask,Nworker); for task_j = 1:Ntask labelSet = randperm(Ndom,ndom); groundtruth(task_j) = randsrc(1,1,labelSet); prob = zeros(1,ndom); for k = 1:ndo...
github
hsun2022/CrowdComputing-master
SEEK_lnr_norm_semi.m
.m
CrowdComputing-master/seek-plus/SEEK_lnr_norm_semi.m
7,277
utf_8
800a43c9f98e78f632f301e31ef7c729
function result = SEEK_lnr_norm_semi(model, KnowledgeMatrix,groundTruthFlag) maxIter = 20; TOL = 1e-6; global L NeibTask NeibWork LabelDomain Relation Ntask Nwork Ndom LabelTask LabelWork LjDomain groundTruth Flag bias Ntask = model.Ntask; Nwork = model.Nwork; Ndom = model.Ndom; NeibTask = model.NeibTask; NeibWork = ...
github
shuangshuangguo/dense_flow-master
extractOpticalFlow_gpu.m
.m
dense_flow-master/matlab/extractOpticalFlow_gpu.m
1,645
utf_8
e184fc7aad7743036e394d6b08ba37f9
function [] = extractOpticalFlow_gpu(index, device_id, type) % path1 = '/nfs/lmwang/lmwang/Data/UCF101/ucf101_org/'; % if type ==0 % path2 = '/media/sdb/lmwang/data/UCF101/ucf101_flow_img_farn_gpu_step_2/'; % elseif type ==1 % path2 = '/media/sdb/lmwang/data/UCF101/ucf101_flow_img_tvl1_gpu_step_2/'; % else % ...
github
shuangshuangguo/dense_flow-master
extracOpticalFlow.m
.m
dense_flow-master/matlab/extracOpticalFlow.m
1,034
utf_8
87c098785c996cfa862cd7e84742994e
function [] = extracOpticalFlow(index) path1 = '/home/lmwang/data/UCF/ucf101_org/'; path2 = '/home/lmwang/data/UCF/ucf101_warp_flow_img/'; folderlist = dir(path1); foldername = {folderlist(:).name}; foldername = setdiff(foldername,{'.','..'}); for i = index if ~exist([path2,foldername{i}],'dir') mkdir([p...
github
shuangshuangguo/dense_flow-master
extractOpticalFlow.m
.m
dense_flow-master/matlab/extractOpticalFlow.m
1,042
utf_8
e73edca68bee408e232e58e19e2aae1b
function [] = extractOpticalFlow(index) path1 = '/nfs/lmwang/lmwang/Data/UCF101/ucf101_org/'; path2 = '/media/sdb/lmwang/data/UCF101/ucf101_flow_img_TV/'; folderlist = dir(path1); foldername = {folderlist(:).name}; foldername = setdiff(foldername,{'.','..'}); for i = index if ~exist([path2,foldername{i}],'dir') ...
github
Reasat/cr-comp-master
gen_PU_PSK.m
.m
cr-comp-master/channel_allocation_scheduling/gen_PU_PSK.m
2,764
utf_8
b1bb1d3a1b9bc90924170e535d1df534
% initial sample of transmitted signal is assumed zero but pu tx state is % assumed busy, fix it later function [ch_tx,t_ch, pu_state]=gen_PU_PSK(T,lambda,Fs,M,hpsk) %% Creating PU activity Ts=1/Fs; old = digits(3); % specify number of significant decimal digits Ts=double(vpa(Ts)); digits(old);%Restore the defau...
github
PianoDan/TDP-master
TempoAvg.m
.m
TDP-master/TempoAvg.m
7,164
utf_8
089ba8ab4b3365c3c6a8896556e102e3
function varargout = TempoAvg(varargin) % TEMPOAVG MATLAB code for TempoAvg.fig % TEMPOAVG, by itself, creates a new TEMPOAVG or raises the existing % singleton*. % % H = TEMPOAVG returns the handle to a new TEMPOAVG or the handle to % the existing singleton*. % % TEMPOAVG('CALLBACK',hObject,ev...
github
PianoDan/TDP-master
TDPPlot.m
.m
TDP-master/TDPPlot.m
8,860
utf_8
4f515dcaccab2050037da3818dcd5f87
function varargout = TDPPlot(varargin) % TDPPLOT MATLAB code for TDPPlot.fig % TDPPLOT, by itself, creates a new TDPPLOT or raises the existing % singleton*. % % H = TDPPLOT returns the handle to a new TDPPLOT or the handle to % the existing singleton*. % % TDPPLOT('CALLBACK',hObject,eventData,...
github
PianoDan/TDP-master
SubjectAvg.m
.m
TDP-master/SubjectAvg.m
7,407
utf_8
ac10cb4c905651c4816c4a0271313751
function varargout = SubjectAvg(varargin) % SubjectAvg MATLAB code for SubjectAvg.fig % SubjectAvg, by itself, creates a new SubjectAvg or raises the existing % singleton*. % % H = SubjectAvg returns the handle to a new SubjectAvg or the handle to % the existing singleton*. % % SubjectAvg('CALL...
github
Jeffrey28/PlatoonBased-AIM-master
OccupancyGrid.m
.m
PlatoonBased-AIM-master/Matlab2/OccupancyGrid.m
54,073
utf_8
48a2d107b354fe119551901e2740db99
classdef (Sealed)OccupancyGrid <OccupancyGridBase %OCCUPANCYGRID Create an occupancy grid % OCCUPANCYGRID creates a 2D occupancy grid map. Each cell has % a value representing the probability of occupancy of that cell. % Probability values close to 1 represent certainty that the workspace % ...
github
Jeffrey28/PlatoonBased-AIM-master
AIM_Optimal.m
.m
PlatoonBased-AIM-master/Matlab2/AIM_Optimal.m
13,139
utf_8
bd8a3a8dbf63c5717afdaf44da5e5b26
function [F,callCounter,packets,var,AverageDelayPerVehicle,AverageDelayPerPlatoon,totalVehicles,totalVehiclesCrossed] = AIM_Optimal(policyName,ver,seed,granularity,platoonMaxSize,spawnRate,duration,simSpeed,handles) tic; rng(seed); packetsFromPlatoons = 0; packetsToPlatoons = 0; %Get Map, Show Map intersectionData = in...
github
Jeffrey28/PlatoonBased-AIM-master
intersection.m
.m
PlatoonBased-AIM-master/Matlab2/intersection.m
6,087
utf_8
c8d83f6e75ff575d165c9f3adf6d0cb6
classdef intersection < handle properties(SetAccess = private) granularity; lineWidth; lanePerRoad; end properties(SetAccess = public) spawnPoints = [20 195 0;%for Lane 1 205 20 pi/2;%for Lane 2 380 205 pi;%for La...
github
Jeffrey28/PlatoonBased-AIM-master
simulator.m
.m
PlatoonBased-AIM-master/Matlab2/simulator.m
27,407
utf_8
cf0a2074baee1fc10130713ee54d1d6e
function varargout = simulator(varargin) % SIMULATOR MATLAB code for simulator.fig %% %% % SIMULATOR, by itself, creates a new SIMULATOR or raises the existing % singleton*. % % H = SIMULATOR returns the handle to a new SIMULATOR or the handle to % the existing singleton*. % % SIMULATOR('CALL...
github
Jeffrey28/PlatoonBased-AIM-master
OccupancyGrid.m
.m
PlatoonBased-AIM-master/Matlab/OccupancyGrid.m
54,073
utf_8
48a2d107b354fe119551901e2740db99
classdef (Sealed)OccupancyGrid <OccupancyGridBase %OCCUPANCYGRID Create an occupancy grid % OCCUPANCYGRID creates a 2D occupancy grid map. Each cell has % a value representing the probability of occupancy of that cell. % Probability values close to 1 represent certainty that the workspace % ...
github
Jeffrey28/PlatoonBased-AIM-master
AIM_Optimal.m
.m
PlatoonBased-AIM-master/Matlab/AIM_Optimal.m
13,184
utf_8
288e2c22a0200535ab23bf32c3793c77
function [delays,callCounter,packets,var,AverageDelayPerVehicle,AverageDelayPerPlatoon,totalVehicles,totalVehiclesCrossed] = AIM_Optimal(bal,seed,granularity,platoonMaxSize,spawnRate,duration,simSpeed,handles) tic; ver=2; rng(seed); packetsFromPlatoons = 0; packetsToPlatoons = 0; %Get Map, Show Map intersectionData = i...
github
Jeffrey28/PlatoonBased-AIM-master
intersection.m
.m
PlatoonBased-AIM-master/Matlab/intersection.m
6,087
utf_8
c8d83f6e75ff575d165c9f3adf6d0cb6
classdef intersection < handle properties(SetAccess = private) granularity; lineWidth; lanePerRoad; end properties(SetAccess = public) spawnPoints = [20 195 0;%for Lane 1 205 20 pi/2;%for Lane 2 380 205 pi;%for La...
github
Jeffrey28/PlatoonBased-AIM-master
simulator.m
.m
PlatoonBased-AIM-master/Matlab/simulator.m
28,773
utf_8
8ac19883ed2c0563a0e03fa0f0535b83
function varargout = simulator(varargin) % SIMULATOR MATLAB code for simulator.fig %% %% % SIMULATOR, by itself, creates a new SIMULATOR or raises the existing % singleton*. % % H = SIMULATOR returns the handle to a new SIMULATOR or the handle to % the existing singleton*. % % SIMULATOR('CALL...
github
felipe-vrgs/QuadMat-master
PID.m
.m
QuadMat-master/src/PID.m
2,558
utf_8
3f3b4dc3905901015e37226434bbfb47
% PID: Aplicação de PID % % @param Gains Os ganhos [kp ki kd] % @param x Vetor de esp est % @param SetPoint Ponto que queremos chegar % @param Ref Qual malha está sendo controlada % @param t Passo de tempo atual % % @return U Esforço de controle % function [U] =...
github
felipe-vrgs/QuadMat-master
PlotDrone.m
.m
QuadMat-master/src/PlotDrone.m
8,620
utf_8
f33f1fc20471e03c83cbb487034015d9
% PlotDrone: Funão que realiza a plotagem dos gráficos. % % @param t Tempo % @param X X % @param ty Tipo do gráfico % % @return graphs ! % function PlotDrone(t,X,ty) % Verifica qual é o tipo e redireciona para a função correta % Não vou entrar muito em detalhes nesse arquivo tendo ...
github
felipe-vrgs/QuadMat-master
Fitness.m
.m
QuadMat-master/src/Fitness.m
1,564
utf_8
b6c06b639c3ac9425948e088bb14c101
% Fitness: function description % % @param target Quem será controlado % @param gains Os ganhos do PID % @param setpoint O SetPoint % % @return O fitness % function fit = Fitness(target, gains, setpoint, p) if nargin == 3 p = 0; end global err_int; %{ Apesar do código estar...
github
felipe-vrgs/QuadMat-master
cacm.m
.m
QuadMat-master/src/cacm.m
3,926
utf_8
1c3f4d672c3c3d9f50124b348ded3773
% CACM: function description % % @param target Quem será controlado % @param gains Os ganhos do PID % @param setpoint O SetPoint % % @return O CACM % function CACM() % CACM global divisoes numSim z_val zdot_val x1ini x1fim x1divs x2ini x2fim x2divs x1delta x2delta numCores CodigoCores...
github
felipe-vrgs/QuadMat-master
magnifyOnFigure.m
.m
QuadMat-master/src/magnifyOnFigure.m
97,117
utf_8
602ece8d29b1a3fea8602b011364b137
% NAME: magnifyOnFigure % % AUTHOR: David Fernandez Prim (david.fernandez.prim@gmail.com) % % PURPOSE: Shows a functional zoom tool, suitable for publishing of zoomed % images and 2D plots % % INPUT ARGUMENTS: % figureHandle [double 1x1]: graphic handle of the target figure % axesH...
github
medooze/swig-master
member_pointer_runme.m
.m
swig-master/Examples/test-suite/octave/member_pointer_runme.m
922
utf_8
5d65cb03abdda4efc4dd89ee739e27b6
# Example using pointers to member functions member_pointer function check(what,expected,actual) if (expected != actual) error ("Failed: %s, Expected: %f, Actual: %f",what,expected,actual); endif end # Get the pointers area_pt = areapt; perim_pt = perimeterpt; # Create some objects s = Square(10); # Do s...
github
medooze/swig-master
director_basic_runme.m
.m
swig-master/Examples/test-suite/octave/director_basic_runme.m
1,778
utf_8
7cc0b3cfcf243842955e597f2f9889f2
director_basic function self=OctFoo() global director_basic; self=subclass(director_basic.Foo()); self.ping=@OctFoo_ping; end function string=OctFoo_ping(self) string="OctFoo::ping()"; end a = OctFoo(); if (!strcmp(a.ping(),"OctFoo::ping()")) error(a.ping()) endif if (!strcmp(a.pong(),"Foo::pong();OctFoo...
github
medooze/swig-master
director_string_runme.m
.m
swig-master/Examples/test-suite/octave/director_string_runme.m
566
utf_8
d0a720bc282afbf1ac33203b567084f3
# do not dump Octave core if exist("crash_dumps_octave_core", "builtin") crash_dumps_octave_core(0); endif director_string function out=get_first(self) out = strcat(self.A.get_first()," world!"); end function process_text(self,string) self.A.process_text(string); self.smem = "hello"; end B=@(string) subclass...
github
medooze/swig-master
overload_null_runme.m
.m
swig-master/Examples/test-suite/octave/overload_null_runme.m
945
utf_8
96d0d2a599a578a152484af795a6992b
# do not dump Octave core if exist("crash_dumps_octave_core", "builtin") crash_dumps_octave_core(0); endif overload_null function check(a, b) if (a != b) error("%i does not equal %i", a, b); endif end o = Overload(); x = X(); null = []; # NULL pointer check(1, o.byval1(x)); check(2, o.byval1(null)); chec...
github
medooze/swig-master
li_boost_shared_ptr_runme.m
.m
swig-master/Examples/test-suite/octave/li_boost_shared_ptr_runme.m
15,667
utf_8
4ba4347214279b5ab96617f27384b547
# do not dump Octave core if exist("crash_dumps_octave_core", "builtin") crash_dumps_octave_core(0); endif 1; li_boost_shared_ptr; function verifyValue(expected, got) if (expected ~= got) error("verify value failed.");% Expected: ", expected, " Got: ", got) end endfunction function verifyCount(expect...
github
medooze/swig-master
voidtest_runme.m
.m
swig-master/Examples/test-suite/octave/voidtest_runme.m
632
utf_8
8328758f24f7f57e3360e2e34ffae9c7
# do not dump Octave core if exist("crash_dumps_octave_core", "builtin") crash_dumps_octave_core(0); endif voidtest voidtest.globalfunc(); f = voidtest.Foo(); f.memberfunc(); voidtest.Foo_staticmemberfunc(); function fvoid() end try a = f.memberfunc(); catch end_try_catch try a = fvoid(); catch end_try_catch...
github
medooze/swig-master
director_detect_runme.m
.m
swig-master/Examples/test-suite/octave/director_detect_runme.m
654
utf_8
b67110f81021223aa13bcfcf1a6db401
director_detect global MyBar=@(val=2) subclass(director_detect.Bar(),'val',val,@get_value,@get_class,@just_do_it,@clone); function val=get_value(self) self.val = self.val + 1; val = self.val; end function ptr=get_class(self) global director_detect; self.val = self.val + 1; ptr=director_detect.A(); end ...
github
medooze/swig-master
preproc_constants_runme.m
.m
swig-master/Examples/test-suite/octave/preproc_constants_runme.m
533
utf_8
917a1bdadc03d5ce92d7468e9c4c81b2
preproc_constants assert(CONST_INT1, 10) assert(CONST_DOUBLE3, 12.3) assert(CONST_BOOL1, true) assert(CONST_CHAR, 'x') assert(CONST_STRING1, "const string") # Test global constants can be seen within functions function test_global() global CONST_INT1 global CONST_DOUBLE3 global CONST_BOOL1 global CO...
github
medooze/swig-master
director_classic_runme.m
.m
swig-master/Examples/test-suite/octave/director_classic_runme.m
2,521
utf_8
34c0a5c2bef2aca0089be422d83e3982
# do not dump Octave core if exist("crash_dumps_octave_core", "builtin") crash_dumps_octave_core(0); endif director_classic TargetLangPerson=@() subclass(Person(),'id',@(self) "TargetLangPerson"); TargetLangChild=@() subclass(Child(),'id',@(self) "TargetLangChild"); TargetLangGrandChild=@() subclass(GrandChild(),'i...