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
ZelaTaino/amalthea-master
circ_kuipertest.m
.m
amalthea-master/code/matlab_packages/CircStat2012a/circ_kuipertest.m
3,076
utf_8
17975f8427b61f430b01b39bea0a0b92
function [pval, k, K] = circ_kuipertest(alpha1, alpha2, res, vis_on) % [pval, k, K] = circ_kuipertest(sample1, sample2, res, vis_on) % % The Kuiper two-sample test tests whether the two samples differ % significantly.The difference can be in any property, such as mean % location and dispersion. It is a c...
github
ZelaTaino/amalthea-master
circ_clust.m
.m
amalthea-master/code/matlab_packages/CircStat2012a/circ_clust.m
3,346
utf_8
09f16d972b35b7b7b55b361710748587
function [cid, alpha, mu] = circ_clust(alpha, numclust, disp) % % [cid, alpha, mu] = circClust(alpha, numclust, disp) % Performs a simple agglomerative clustering of angular data. % % Input: % alpha sample of angles % numclust number of clusters desired, default: 2 % disp show plot at each ste...
github
ZelaTaino/amalthea-master
circ_raotest.m
.m
amalthea-master/code/matlab_packages/CircStat2012a/circ_raotest.m
4,132
utf_8
a088b9d557b94032992d192ef76b8fd4
function [p U UC] = circ_raotest(alpha) % [p U UC] = circ_raotest(alpha) % Calculates Rao's spacing test by comparing distances between points on % a circle to those expected from a uniform distribution. % % H0: Data is distributed uniformly around the circle. % H1: Data is not uniformly distributed around th...
github
ZelaTaino/amalthea-master
circ_cmtest.m
.m
amalthea-master/code/matlab_packages/CircStat2012a/circ_cmtest.m
2,127
utf_8
b8057e2fbbbaef56584aa347fe5c81cd
function [pval med P] = circ_cmtest(varargin) % % [pval, med, P] = circ_cmtest(alpha, idx) % [pval, med, P] = circ_cmtest(alpha1, alpha2) % Non parametric multi-sample test for equal medians. Similar to a % Kruskal-Wallis test for linear data. % % H0: the s populations have equal medians % HA: the s pop...
github
ZelaTaino/amalthea-master
circ_wwtest.m
.m
amalthea-master/code/matlab_packages/CircStat2012a/circ_wwtest.m
4,669
utf_8
2fa4cad8c08ca9d37b358392c2a3fa99
function [pval table] = circ_wwtest(varargin) % [pval, table] = circ_wwtest(alpha, idx, [w]) % [pval, table] = circ_wwtest(alpha1, alpha2, [w1, w2]) % Parametric Watson-Williams multi-sample test for equal means. Can be % used as a one-way ANOVA test for circular data. % % H0: the s populations have equal m...
github
ZelaTaino/amalthea-master
normalize_norm.m
.m
amalthea-master/code/matlab_packages/SPKmeans/normalize_norm.m
493
utf_8
b1dfa4af44a3fba7d019d19f57b48120
%The spherical K-means algorithm %(C) 2007-2011 Nguyen Xuan Vinh %Contact: vinh.nguyenx at gmail.com or vinh.nguyen at monash.edu %Reference: % [1] Xuan Vinh Nguyen: Gene Clustering on the Unit Hypersphere with the % Spherical K-Means Algorithm: Coping with Extremely Large Number of Local Optima. BIO...
github
ZelaTaino/amalthea-master
normalize_norm_mean.m
.m
amalthea-master/code/matlab_packages/SPKmeans/normalize_norm_mean.m
542
utf_8
da9a955f2754c89c7fc6ce3c18753147
%The spherical K-means algorithm %(C) 2007-2011 Nguyen Xuan Vinh %Contact: vinh.nguyenx at gmail.com or vinh.nguyen at monash.edu %Reference: % [1] Xuan Vinh Nguyen: Gene Clustering on the Unit Hypersphere with the % Spherical K-Means Algorithm: Coping with Extremely Large Number of Local Optima. BIO...
github
ZelaTaino/amalthea-master
SPKmeans.m
.m
amalthea-master/code/matlab_packages/SPKmeans/SPKmeans.m
4,396
utf_8
689352065569a73e0067fb58d517e775
%The spherical K-means algorithm %(C) 2007-2011 Nguyen Xuan Vinh %Contact: vinh.nguyenx at gmail.com or vinh.nguyen at monash.edu %Reference: % [1] Xuan Vinh Nguyen: Gene Clustering on the Unit Hypersphere with the % Spherical K-Means Algorithm: Coping with Extremely Large Number of % Local O...
github
ZelaTaino/amalthea-master
random_spherical_data.m
.m
amalthea-master/code/hierarchical_clustering/utilities/random_spherical_data.m
2,107
utf_8
f9f2e3207615dd07eaa26f7a61825978
%-------------------------------------------------------------------------- % Function: random_spherical_data % Description: Draws a line on a sphere. % % Inputs: % % numClusters - Number of clusters. % % numPoints - Number of points per cluster. % numPoints - Kappa (concentration parameter); % ...
github
ZelaTaino/amalthea-master
draw_tree.m
.m
amalthea-master/code/hierarchical_clustering/utilities/draw_tree.m
1,142
utf_8
f26deeeac564468fb8454de7b5433182
%-------------------------------------------------------------------------- % Function: draw_tree % Description: Recurses through a hierarchical tree % and draws connection the unit hypersphere. % % Inputs: % % T - A hierarchical tree (see meantree for specification) % % Usage: Used in hierarchical clustering on...
github
ZelaTaino/amalthea-master
rand_angle.m
.m
amalthea-master/code/hierarchical_clustering/utilities/rand_angle.m
681
utf_8
08568c43b99d95a1e3be78dabf8c8d94
%-------------------------------------------------------------------------- % Function: rand_angle % Description: Returns a random angle between -pi and pi. % % Outputs % % out1 - Example output 1. % % % Authors(s): % Mark Moyou - markmmoyou@gmail.com % Yixin Lin - yixin1996@gmail.com % Glizela Taino - glizela...
github
ZelaTaino/amalthea-master
circline.m
.m
amalthea-master/code/hierarchical_clustering/utilities/circline.m
1,127
utf_8
6c3bc8530ab56cc9b153543ae7090ff7
%-------------------------------------------------------------------------- % Function: circline % Description: Draws a line on a sphere. % % Inputs: % % v1,v2 - Two vectors on a sphere % % clr - Optional color (default black) % % Outputs % % out1 - Example output 1. % % Usage: Used in hierarchical cluster...
github
ZelaTaino/amalthea-master
exp_map.m
.m
amalthea-master/code/hierarchical_clustering/diff_geo/exp_map.m
1,022
utf_8
18b1439646825b8b4c2c7a6e8523904d
%-------------------------------------------------------------------------- % Function: exp_map % Description: In the Karcher mean, % takes the log-mapped points on the tangent space, % and return them to the original space % % Inputs: % % ro1 - Point that the tangent space is tangent to. % % gamma - Point on...
github
ZelaTaino/amalthea-master
log_map.m
.m
amalthea-master/code/hierarchical_clustering/diff_geo/log_map.m
1,055
utf_8
6403d33df0b8a0d7545c872182342bda
%-------------------------------------------------------------------------- % Function: log_map % Description: In the Karcher mean, % takes a point and maps it to the tangent space of another point. % % Inputs: % % ro1 - Point that the tangent space is tangent to. % % ro2 - Point being mapped to the tangent sp...
github
ZelaTaino/amalthea-master
sphere_dist.m
.m
amalthea-master/code/hierarchical_clustering/diff_geo/sphere_dist.m
858
utf_8
82144861d71f49ab42b83b6c114724e1
%-------------------------------------------------------------------------- % Function: sphere_dist % Description: Finds the distance (angle) between two vectors on a unit hypersphere. % % Inputs: % % x,y - Vectors on the unit hypersphere. % % Outputs % % theta - The angle between the two vectors. % % Usage:...
github
ZelaTaino/amalthea-master
meantree.m
.m
amalthea-master/code/hierarchical_clustering/trees/meantree.m
2,868
utf_8
e01e4d7aea3900382968416d438b91ff
%-------------------------------------------------------------------------- % Function: meantree % Description: Constructs a divisive hierarchical tree. % % Inputs: % % D - An nxd matrix of data points. % % DEBUG - Boolean for printing debug statements (default = 0). % % branchingFactor...
github
ZelaTaino/amalthea-master
t_retrieve.m
.m
amalthea-master/code/hierarchical_clustering/trees/t_retrieve.m
2,086
utf_8
c2e7baf853e03b43d9580db0c890546e
%-------------------------------------------------------------------------- % Function: t_retrieve % Description: Retrieves from a meantree by recursively concatenating % the closer and farther subproblems. % % Inputs: % % T - A meantree as specified in meantree. % % Q ...
github
ZelaTaino/amalthea-master
link_tree.m
.m
amalthea-master/code/hierarchical_clustering/trees/link_tree.m
2,441
utf_8
7bfb1ebab9b942050cb6a9da7567beef
%-------------------------------------------------------------------------- % Function: link_tree % Description: Constructs a hierarchical tree % from the MATLAB implementation of hierarchical clustering (using linkage). % % Inputs: % % D - An nxd matrix of data points. % % DEBUG - B...
github
ZelaTaino/amalthea-master
meantree2_nodify.m
.m
amalthea-master/code/hierarchical_clustering/trees/meantree2_nodify.m
1,659
utf_8
b7a17ac58a3fa8d2f5ff3d5f9671109e
%-------------------------------------------------------------------------- % Function: meantree2_nodify % Description: Reconstructs a recursive tree from the cell array representation. % % Inputs: % % C - A cell array (levels from leaves to root). % % l - The current level index of C....
github
ZelaTaino/amalthea-master
meantree2_recurse.m
.m
amalthea-master/code/hierarchical_clustering/trees/meantree2_recurse.m
1,863
utf_8
832d7788050e3b1fbe27aaee0e711368
%-------------------------------------------------------------------------- % Function: meantree2_recurse % Description: Constructs an agglomerative hierarchical tree in a cell array. % % Inputs: % % D - An nxd matrix of data points. % C - The cell array being modified % ...
github
ZelaTaino/amalthea-master
meantree2.m
.m
amalthea-master/code/hierarchical_clustering/trees/meantree2.m
1,512
utf_8
8577021cc9a5452795810b9b5bdc5f03
%-------------------------------------------------------------------------- % Function: meantree2 % Description: Constructs an agglomerative hierarchical tree. % % Inputs: % % D - An nxd matrix of data points. % % DEBUG - Boolean for printing debug statements (default = 0). % % Outputs...
github
ZelaTaino/amalthea-master
eval_unsupervised_kmeans.m
.m
amalthea-master/code/hierarchical_clustering/metrics/eval_unsupervised_kmeans.m
1,828
utf_8
aea01ab1deac1bcb95bc15d8c1a804e2
%-------------------------------------------------------------------------- % Function: eval_unsupervised_kmean % Description: Evaluates model-to-mean retrieval by clustering. % % Inputs: % % D - An nxd matrix of the datapoints. % % L - The true labels that correspond to each data point ...
github
ZelaTaino/amalthea-master
metrics_shrec.m
.m
amalthea-master/code/hierarchical_clustering/metrics/metrics_shrec.m
3,462
utf_8
273c39f29589b1b045bf2c9cf8a7bd0d
%-------------------------------------------------------------------------- % Function: metrics_shrec % Description: Runs SHREC metrics. % Adapted from MATLAB evaluation code from % http://www.itl.nist.gov/iad/vug/sharp/contest/2015/Range/results.html % % Inputs: % % distMatrix - A pairwise distance matr...
github
ZelaTaino/amalthea-master
metricsTest.m
.m
amalthea-master/code/hierarchical_clustering/metrics/metricsTest.m
1,803
utf_8
ee088f8a1c336aaf90ea7d23f858fa79
%-------------------------------------------------------------------------- % Function: metricsTest % Description: Runs tests for metrics1 (deprecated). % % Usage: Used in hierarchical clustering on the unit hypersphere. % Usage: runtests('metricsTest.m'); % % Authors(s): % Mark Moyou - markmmoyou@gmail.com...
github
ZelaTaino/amalthea-master
bullsEyeScore.m
.m
amalthea-master/code/hierarchical_clustering/metrics/bullsEyeScore.m
2,140
utf_8
52c9fbf762ee7fb32db45b37652c97d1
%-------------------------------------------------------------------------- % Function: bullsEyeScore % Description: This functions computes the bull's eye score for the MPEG 7 % dataset. % % Inputs: % % distMat - Distance matrix containing the distance between each % ...
github
ZelaTaino/amalthea-master
metrics2.m
.m
amalthea-master/code/hierarchical_clustering/metrics/metrics2.m
2,229
utf_8
5037732314e3cf0d5e8baa2526491ba0
% Deprecated function [metricObj] = metrics2(distMatrix, trueLabels, DISPLAY) [m, n] = size(distMatrix); if m ~= n error('Distance matrix is not square!'); end uniqueLabels = unique(trueLabels); numPerLabel = hist(trueLabels, uniqueLabels); % Cumulated gain: cumulated number of correct labels at each position C...
github
ZelaTaino/amalthea-master
get_retrieval_statistics.m
.m
amalthea-master/code/hierarchical_clustering/metrics/get_retrieval_statistics.m
1,506
utf_8
7b47f1e0d35a39da30ca60929f219b67
% SHREC15 evaluation code taken from % http://www.itl.nist.gov/iad/vug/sharp/contest/2015/Range/results.html function retSTATS = get_retrieval_statistics(matched_retrieved,class_size) num_retrieved = length(matched_retrieved); cum_matched_retrieved = cumsum(matched_retrieved); k = [1:num_retrieved]; k = k(:...
github
ZelaTaino/amalthea-master
metrics1.m
.m
amalthea-master/code/hierarchical_clustering/metrics/metrics1.m
1,334
utf_8
fa9e04c04f7a9603711235f4c7626d63
% Deprecated % Goal is to plot a recall vs. precision graph. Let's start with one array % as the submitted results of our algorithm function [precisionRecallObj] = metrics1(distanceMatrix, trueLabels, DISPLAY) [m n] = size(distanceMatrix); if m ~= n error('Distance matrix is not square!'); end uniqueCategori...
github
ZelaTaino/amalthea-master
eval_supervised_mean_retrieval.m
.m
amalthea-master/code/hierarchical_clustering/metrics/eval_supervised_mean_retrieval.m
3,217
utf_8
5b28aefa094c50736de03bf8c3b00987
%-------------------------------------------------------------------------- % Function: eval_supervised_mean_retrieval % Description: Evaluates model-to-mean retrieval, given the correct classes. % % Inputs: % % D - An nxd matrix of the datapoints. % % L - The true labels that correspond...
github
ZelaTaino/amalthea-master
eval_tree.m
.m
amalthea-master/code/hierarchical_clustering/metrics/eval_tree.m
2,183
utf_8
2fd49d5a274d5e9ed6c6d673abccaa8f
%-------------------------------------------------------------------------- % Function: eval_tree % Description: Given a hierarchical tree constructor, % construct the tree and run metrics on it % % Inputs: % % D - A nxd dataMatrix. % % L - The true labels that correspon...
github
jliu4/BE-master
pdftops.m
.m
BE-master/matlab/export_fig/altmany-export_fig-2763b78/pdftops.m
5,994
utf_8
24eb803667c83c8a28424c979311652b
function varargout = pdftops(cmd) %PDFTOPS Calls a local pdftops executable with the input command % % Example: % [status result] = pdftops(cmd) % % Attempts to locate a pdftops executable, finally asking the user to % specify the directory pdftops was installed into. The resulting path is % stored for future refere...
github
jliu4/BE-master
crop_borders.m
.m
BE-master/matlab/export_fig/altmany-export_fig-2763b78/crop_borders.m
4,976
utf_8
c814ff486afb188464069b51e4b5ed8a
function [A, vA, vB, bb_rel] = crop_borders(A, bcol, padding, crop_amounts) %CROP_BORDERS Crop the borders of an image or stack of images % % [B, vA, vB, bb_rel] = crop_borders(A, bcol, [padding]) % %IN: % A - HxWxCxN stack of images. % bcol - Cx1 background colour vector. % padding - scalar indicating how much...
github
jliu4/BE-master
isolate_axes.m
.m
BE-master/matlab/export_fig/altmany-export_fig-2763b78/isolate_axes.m
4,721
utf_8
253cd7b7d8fc7cb00d0cc55926f32de5
function fh = isolate_axes(ah, vis) %ISOLATE_AXES Isolate the specified axes in a figure on their own % % Examples: % fh = isolate_axes(ah) % fh = isolate_axes(ah, vis) % % This function will create a new figure containing the axes/uipanels % specified, and also their associated legends and colorbars. The objects %...
github
jliu4/BE-master
im2gif.m
.m
BE-master/matlab/export_fig/altmany-export_fig-2763b78/im2gif.m
6,048
utf_8
5a7437140f8d013158a195de1e372737
%IM2GIF Convert a multiframe image to an animated GIF file % % Examples: % im2gif infile % im2gif infile outfile % im2gif(A, outfile) % im2gif(..., '-nocrop') % im2gif(..., '-nodither') % im2gif(..., '-ncolors', n) % im2gif(..., '-loops', n) % im2gif(..., '-delay', n) % % This function converts a mu...
github
jliu4/BE-master
read_write_entire_textfile.m
.m
BE-master/matlab/export_fig/altmany-export_fig-2763b78/read_write_entire_textfile.m
924
utf_8
779e56972f5d9778c40dee98ddbd677e
%READ_WRITE_ENTIRE_TEXTFILE Read or write a whole text file to/from memory % % Read or write an entire text file to/from memory, without leaving the % file open if an error occurs. % % Reading: % fstrm = read_write_entire_textfile(fname) % Writing: % read_write_entire_textfile(fname, fstrm) % %IN: % fname - Pathn...
github
jliu4/BE-master
pdf2eps.m
.m
BE-master/matlab/export_fig/altmany-export_fig-2763b78/pdf2eps.m
1,471
utf_8
a1f41f0c7713c73886a2323e53ed982b
%PDF2EPS Convert a pdf file to eps format using pdftops % % Examples: % pdf2eps source dest % % This function converts a pdf file to eps format. % % This function requires that you have pdftops, from the Xpdf suite of % functions, installed on your system. This can be downloaded from: % http://www.foolabs.com/xpdf ...
github
jliu4/BE-master
print2array.m
.m
BE-master/matlab/export_fig/altmany-export_fig-2763b78/print2array.m
10,117
utf_8
826905ad12ce0de461386980b4aae89b
function [A, bcol] = print2array(fig, res, renderer, gs_options) %PRINT2ARRAY Exports a figure to an image array % % Examples: % A = print2array % A = print2array(figure_handle) % A = print2array(figure_handle, resolution) % A = print2array(figure_handle, resolution, renderer) % A = print2array(figure_handle...
github
jliu4/BE-master
append_pdfs.m
.m
BE-master/matlab/export_fig/altmany-export_fig-2763b78/append_pdfs.m
2,678
utf_8
949c7c4ec3f5af6ff23099f17b1dfd79
%APPEND_PDFS Appends/concatenates multiple PDF files % % Example: % append_pdfs(output, input1, input2, ...) % append_pdfs(output, input_list{:}) % append_pdfs test.pdf temp1.pdf temp2.pdf % % This function appends multiple PDF files to an existing PDF file, or % concatenates them into a PDF file if the output fi...
github
jliu4/BE-master
using_hg2.m
.m
BE-master/matlab/export_fig/altmany-export_fig-2763b78/using_hg2.m
1,064
utf_8
a1883d15c4304cd0ac406c117e3047ea
%USING_HG2 Determine if the HG2 graphics engine is used % % tf = using_hg2(fig) % %IN: % fig - handle to the figure in question. % %OUT: % tf - boolean indicating whether the HG2 graphics engine is being used % (true) or not (false). % 19/06/2015 - Suppress warning in R2015b; cache result for improved per...
github
jliu4/BE-master
eps2pdf.m
.m
BE-master/matlab/export_fig/altmany-export_fig-2763b78/eps2pdf.m
8,435
utf_8
95432e4216ee24df69e7e5720c6c4039
function eps2pdf(source, dest, crop, append, gray, quality, gs_options) %EPS2PDF Convert an eps file to pdf format using ghostscript % % Examples: % eps2pdf source dest % eps2pdf(source, dest, crop) % eps2pdf(source, dest, crop, append) % eps2pdf(source, dest, crop, append, gray) % eps2pdf(source, dest, crop...
github
jliu4/BE-master
ghostscript.m
.m
BE-master/matlab/export_fig/altmany-export_fig-2763b78/ghostscript.m
7,706
utf_8
92dbafb8d4fb243cae8716c6ecb0bbe5
function varargout = ghostscript(cmd) %GHOSTSCRIPT Calls a local GhostScript executable with the input command % % Example: % [status result] = ghostscript(cmd) % % Attempts to locate a ghostscript executable, finally asking the user to % specify the directory ghostcript was installed into. The resulting path % is s...
github
jliu4/BE-master
fix_lines.m
.m
BE-master/matlab/export_fig/altmany-export_fig-2763b78/fix_lines.m
6,290
utf_8
8437006b104957762090e3d875688cb6
%FIX_LINES Improves the line style of eps files generated by print % % Examples: % fix_lines fname % fix_lines fname fname2 % fstrm_out = fixlines(fstrm_in) % % This function improves the style of lines in eps files generated by % MATLAB's print function, making them more similar to those seen on % screen. Grid ...
github
jliu4/BE-master
stft.m
.m
BE-master/matlab/stft/stft.m
1,549
utf_8
248066645afe228b0baa0393c919aa35
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Short-Time Fourier Transform % % with MATLAB Implementation % % % % Author: M.Sc. Eng. Hristo Zhivomirov 12/21/13 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
github
jliu4/BE-master
getall.m
.m
BE-master/matlab/backup/getall.m
674
utf_8
b2750f8427974dbfc308b37b324dc863
%%get all data file names from directory and put in Experiment variable for loading %%Directory='C:/Users/jen_g/Data/WetBoiler2_copy/2014-05-24' function Experiment = getall(Directory) cd(Directory) Experiment={}; foo=dir; %9x1 struct array containing the fields: % % name % date % bytes % isdir % datenu...
github
jliu4/BE-master
getavg.m
.m
BE-master/matlab/backup/getavg.m
4,456
utf_8
47f97c44e35f901be03124279a5396f2
%GAS = getavg(range, stepsize, StepParam); % range = point in larger data set to use % step size (in hours) % Step Param (like Q PulseLengthns) to use in finding steps % 8/2/16 updated to include more parameters, including keeping track of gas % mData.DN = dateN(Range); % mData.H2 = CoreOutH2(Range); %use to fi...
github
jliu4/BE-master
getavgJL.m
.m
BE-master/matlab/backup/getavgJL.m
3,271
utf_8
2f0e6dfe36acc98e59f3905d06d96673
%GAS = getavg(range, stepsize, StepParam); % range = all valid sequences % step size (in hours) % Step Param SeqStepNum to use in finding steps % mData.DN = dateN(Range); % mData.HP = CoreHtrPow(Range); % mData.OBT = OuterBlockTemp1(Range); % mData.QP = QPow(Range); % mData.CQP =CoreQPower(Range); % ...
github
jliu4/BE-master
zoom_R11.1_.m
.m
BE-master/matlab/addaxis5/zoom_R11.1_.m
17,410
utf_8
32df3a2d9cdae77f3f01e79410424301
function out = zoom(varargin) %ZOOM Zoom in and out on a 2-D plot. % ZOOM with no arguments toggles the zoom state. % ZOOM(FACTOR) zooms the current axis by FACTOR. % Note that this does not affect the zoom state. % ZOOM ON turns zoom on for the current figure. % ZOOM OFF turns zoom off in the current...
github
jliu4/BE-master
zoom_R14SP2_.m
.m
BE-master/matlab/addaxis5/zoom_R14SP2_.m
22,904
utf_8
3d10964270f32987e644bce1a58d295c
function out = zoom(varargin) %ZOOM Zoom in and out on a 2-D plot. % ZOOM with no arguments toggles the zoom state. % ZOOM(FACTOR) zooms the current axis by FACTOR. % Note that this does not affect the zoom state. % ZOOM ON turns zoom on for the current figure. % ZOOM XON or ZOOM YON turns zoom on for t...
github
jliu4/BE-master
buttonupfcn2D_R14SP2_.m
.m
BE-master/matlab/addaxis5/buttonupfcn2D_R14SP2_.m
8,859
utf_8
8fbbbd81bdcfb194782aa377ba212582
function buttonupfcn2D(hZoom, cpMulAxes) %MOUSEBTNUPFCN Mouse button up function % Copyright 2003-2004 The MathWorks, Inc. % This code originates from simulink zoom. % This constant specifies the number of pixels the mouse % must move in order to do a rbbox zoom. POINT_MODE_MAX_PIXELS = 5; % pixels % Get necessary...
github
jliu4/BE-master
CalibrateBrillouinCalorimeter.m
.m
BE-master/matlab/df-google/Brillouin Matlab/CalibrateBrillouinCalorimeter.m
4,227
utf_8
074ac995e1add9c6284f7eec76ed7050
function run_data = CalibrateBrillouinCalorimeter(run_data, varargin) % calibrateCalorimeter -- general calibration routine if nargin == 2 parameter_argin = varargin{1}; end %% Prepare starting dynamic calorimeter models model_type = run_data.model.type; [model_name, energy_calc_code, model_class] = setModelNames(m...
github
jliu4/BE-master
pdftops.m
.m
BE-master/matlab/altmany-export_fig-5be2ca4/pdftops.m
5,994
utf_8
24eb803667c83c8a28424c979311652b
function varargout = pdftops(cmd) %PDFTOPS Calls a local pdftops executable with the input command % % Example: % [status result] = pdftops(cmd) % % Attempts to locate a pdftops executable, finally asking the user to % specify the directory pdftops was installed into. The resulting path is % stored for future refere...
github
jliu4/BE-master
crop_borders.m
.m
BE-master/matlab/altmany-export_fig-5be2ca4/crop_borders.m
4,976
utf_8
c814ff486afb188464069b51e4b5ed8a
function [A, vA, vB, bb_rel] = crop_borders(A, bcol, padding, crop_amounts) %CROP_BORDERS Crop the borders of an image or stack of images % % [B, vA, vB, bb_rel] = crop_borders(A, bcol, [padding]) % %IN: % A - HxWxCxN stack of images. % bcol - Cx1 background colour vector. % padding - scalar indicating how much...
github
jliu4/BE-master
isolate_axes.m
.m
BE-master/matlab/altmany-export_fig-5be2ca4/isolate_axes.m
4,721
utf_8
253cd7b7d8fc7cb00d0cc55926f32de5
function fh = isolate_axes(ah, vis) %ISOLATE_AXES Isolate the specified axes in a figure on their own % % Examples: % fh = isolate_axes(ah) % fh = isolate_axes(ah, vis) % % This function will create a new figure containing the axes/uipanels % specified, and also their associated legends and colorbars. The objects %...
github
jliu4/BE-master
im2gif.m
.m
BE-master/matlab/altmany-export_fig-5be2ca4/im2gif.m
6,048
utf_8
5a7437140f8d013158a195de1e372737
%IM2GIF Convert a multiframe image to an animated GIF file % % Examples: % im2gif infile % im2gif infile outfile % im2gif(A, outfile) % im2gif(..., '-nocrop') % im2gif(..., '-nodither') % im2gif(..., '-ncolors', n) % im2gif(..., '-loops', n) % im2gif(..., '-delay', n) % % This function converts a mu...
github
jliu4/BE-master
read_write_entire_textfile.m
.m
BE-master/matlab/altmany-export_fig-5be2ca4/read_write_entire_textfile.m
924
utf_8
779e56972f5d9778c40dee98ddbd677e
%READ_WRITE_ENTIRE_TEXTFILE Read or write a whole text file to/from memory % % Read or write an entire text file to/from memory, without leaving the % file open if an error occurs. % % Reading: % fstrm = read_write_entire_textfile(fname) % Writing: % read_write_entire_textfile(fname, fstrm) % %IN: % fname - Pathn...
github
jliu4/BE-master
pdf2eps.m
.m
BE-master/matlab/altmany-export_fig-5be2ca4/pdf2eps.m
1,471
utf_8
a1f41f0c7713c73886a2323e53ed982b
%PDF2EPS Convert a pdf file to eps format using pdftops % % Examples: % pdf2eps source dest % % This function converts a pdf file to eps format. % % This function requires that you have pdftops, from the Xpdf suite of % functions, installed on your system. This can be downloaded from: % http://www.foolabs.com/xpdf ...
github
jliu4/BE-master
print2array.m
.m
BE-master/matlab/altmany-export_fig-5be2ca4/print2array.m
10,117
utf_8
826905ad12ce0de461386980b4aae89b
function [A, bcol] = print2array(fig, res, renderer, gs_options) %PRINT2ARRAY Exports a figure to an image array % % Examples: % A = print2array % A = print2array(figure_handle) % A = print2array(figure_handle, resolution) % A = print2array(figure_handle, resolution, renderer) % A = print2array(figure_handle...
github
jliu4/BE-master
append_pdfs.m
.m
BE-master/matlab/altmany-export_fig-5be2ca4/append_pdfs.m
2,678
utf_8
949c7c4ec3f5af6ff23099f17b1dfd79
%APPEND_PDFS Appends/concatenates multiple PDF files % % Example: % append_pdfs(output, input1, input2, ...) % append_pdfs(output, input_list{:}) % append_pdfs test.pdf temp1.pdf temp2.pdf % % This function appends multiple PDF files to an existing PDF file, or % concatenates them into a PDF file if the output fi...
github
jliu4/BE-master
using_hg2.m
.m
BE-master/matlab/altmany-export_fig-5be2ca4/using_hg2.m
1,064
utf_8
a1883d15c4304cd0ac406c117e3047ea
%USING_HG2 Determine if the HG2 graphics engine is used % % tf = using_hg2(fig) % %IN: % fig - handle to the figure in question. % %OUT: % tf - boolean indicating whether the HG2 graphics engine is being used % (true) or not (false). % 19/06/2015 - Suppress warning in R2015b; cache result for improved per...
github
jliu4/BE-master
eps2pdf.m
.m
BE-master/matlab/altmany-export_fig-5be2ca4/eps2pdf.m
8,602
utf_8
a52a68e75e8696267fb74733d396a237
function eps2pdf(source, dest, crop, append, gray, quality, gs_options) %EPS2PDF Convert an eps file to pdf format using ghostscript % % Examples: % eps2pdf source dest % eps2pdf(source, dest, crop) % eps2pdf(source, dest, crop, append) % eps2pdf(source, dest, crop, append, gray) % eps2pdf(source, dest, crop...
github
jliu4/BE-master
ghostscript.m
.m
BE-master/matlab/altmany-export_fig-5be2ca4/ghostscript.m
7,706
utf_8
92dbafb8d4fb243cae8716c6ecb0bbe5
function varargout = ghostscript(cmd) %GHOSTSCRIPT Calls a local GhostScript executable with the input command % % Example: % [status result] = ghostscript(cmd) % % Attempts to locate a ghostscript executable, finally asking the user to % specify the directory ghostcript was installed into. The resulting path % is s...
github
jliu4/BE-master
fix_lines.m
.m
BE-master/matlab/altmany-export_fig-5be2ca4/fix_lines.m
6,290
utf_8
8437006b104957762090e3d875688cb6
%FIX_LINES Improves the line style of eps files generated by print % % Examples: % fix_lines fname % fix_lines fname fname2 % fstrm_out = fixlines(fstrm_in) % % This function improves the style of lines in eps files generated by % MATLAB's print function, making them more similar to those seen on % screen. Grid ...
github
jliu4/BE-master
append_pdfs.m
.m
BE-master/matlab/append_pdfs/append_pdfs.m
2,005
utf_8
f9b62e90b1cb173e5e7e03a92565d320
%APPEND_PDFS Appends/concatenates multiple PDF files % % Example: % append_pdfs(output, input1, input2, ...) % append_pdfs(output, input_list{:}) % append_pdfs test.pdf temp1.pdf temp2.pdf % % This function appends multiple PDF files to an existing PDF file, or % concatenates them into a PDF file if the output fi...
github
jliu4/BE-master
user_string.m
.m
BE-master/matlab/append_pdfs/user_string.m
2,339
utf_8
f9b2326571e9d13eccc99ce441efd788
%USER_STRING Get/set a user specific string % % Examples: % string = user_string(string_name) % saved = user_string(string_name, new_string) % % Function to get and set a string in a system or user specific file. This % enables, for example, system specific paths to binaries to be saved. % % IN: % string_name - ...
github
jliu4/BE-master
ghostscript.m
.m
BE-master/matlab/append_pdfs/ghostscript.m
4,076
utf_8
b19fc1688d3306608d35f159509a910d
function varargout = ghostscript(cmd) %GHOSTSCRIPT Calls a local GhostScript executable with the input command % % Example: % [status result] = ghostscript(cmd) % % Attempts to locate a ghostscript executable, finally asking the user to % specify the directory ghostcript was installed into. The resulting path % is s...
github
jliu4/BE-master
getall.m
.m
BE-master/matlab/logDataProcess/getall.m
612
utf_8
02a284565a0c175713dcd0261cfee06e
%%get all data file names from directory and put in Experiment variable for loading function Experiment = getall(Directory) cd(Directory) Experiment={}; foo=dir; %9x1 struct array containing the fields: % % name % date % bytes % isdir % datenum % statinfo %%first 2 in foo are just directory '.' and '....
github
jliu4/BE-master
polyfitn.m
.m
BE-master/matlab/PolyfitnTools/polyfitn.m
13,608
utf_8
f7a5b5d0d94ed97b9ddc7a6eeeb89283
function polymodel = polyfitn(indepvar,depvar,modelterms) % polyfitn: fits a general polynomial regression model in n dimensions % usage: polymodel = polyfitn(indepvar,depvar,modelterms) % % Polyfitn fits a polynomial regression model of one or more % independent variables, of the general form: % % z = f(x,y,...) + e...
github
gtikhonov/HMSC-DepAssoc-master
mtimesx_build.m
.m
HMSC-DepAssoc-master/HMSC class/external code/mtimesx/mtimesx_build.m
16,405
utf_8
838ce3d9c7bc33beb0d2f75546ead978
% mtimesx_build compiles mtimesx.c with BLAS libraries %****************************************************************************** % % MATLAB (R) is a trademark of The Mathworks (R) Corporation % % Function: mtimesx_build % Filename: mtimesx_build.m % Programmer: James Tursa % Version: 1.40 % Dat...
github
igorauad/symbol_timing_sync-master
genTestVector.m
.m
symbol_timing_sync-master/genTestVector.m
3,006
utf_8
8abb3be8f714bca596ac3e5d5018743c
function [x, y] = genTestVector(nSymbols, sps, rolloff, rcDelay, ... tedChoice, interpChoice, loopBw, dampingFactor) % Generate input/output vectors for testing % % [x, y] = genTestVector(nSymbols, sps, rolloff, rcDelay, tedChoice, ... % interpChoice, loopBw, dampingFactor) % % Generates input and output test vec...
github
igorauad/symbol_timing_sync-master
symbolTimingSync.m
.m
symbol_timing_sync-master/symbolTimingSync.m
27,414
utf_8
74eadef850bc602d74a940557c4eb962
function [ xI ] = symbolTimingSync(TED, intpl, L, mfIn, mfOut, K1, K2, ... const, Ksym, rollOff, rcDelay, debug_s, debug_r) % Symbol Timing Loop % --------------------- % % Implements closed-loop symbol timing recovery with a configurable timing % error detector (TED) and a configurable interpolator. The feedback %...
github
sjgershm/choice-confidence-master
plot_figures.m
.m
choice-confidence-master/plot_figures.m
7,436
utf_8
c78f4a031fa2471e70bac14a86ae6ef1
function plot_figures(figname,varargin) % set nicer colors C = linspecer(3); set(0,'DefaultAxesColorOrder',C); switch figname case 'postchoice_bandit' for i = 1:2 data = load_data('bandit_data.csv',i); P = unique(abs(dat...
github
lawlite19/MachineLearningAlgorithm-master
porterStemmer.m
.m
MachineLearningAlgorithm-master/SVM/porterStemmer.m
9,902
utf_8
7ed5acd925808fde342fc72bd62ebc4d
function stem = porterStemmer(inString) % Applies the Porter Stemming algorithm as presented in the following % paper: % Porter, 1980, An algorithm for suffix stripping, Program, Vol. 14, % no. 3, pp 130-137 % Original code modeled after the C version provided at: % http://www.tartarus.org/~martin/PorterStemmer/c.tx...
github
dylanmikesell/GEOS397-master
sinc.m
.m
GEOS397-master/Lecture/L16/sinc.m
134
utf_8
68015573d1bd15617e0500a32a40cf9a
% This is a commnent % So is this. function f = sinc( x ) % This is not. if x == 0 f = 1; else f = sin(x) / x; end return
github
dylanmikesell/GEOS397-master
swinger.m
.m
GEOS397-master/Lecture/L16/ncm/swinger.m
4,009
utf_8
0dca414b9014c9db3ac58333f337c5bc
function swinger(x,y,orbitval) % SWINGER Classic double pendulum. % SWINGER(x,y) starts the pendulum at the given initial position. % The initial position can reset with the mouse. % % SWINGER with no arguments starts at (x,y) = (0.862,-0.994). % What is interesting about the resulting orbit? % % SWI...
github
dylanmikesell/GEOS397-master
primespiral.m
.m
GEOS397-master/Lecture/L16/ncm/primespiral.m
3,485
utf_8
a3fa73d72e8650e2bef3cc9208a28fa4
function [Sout,Pout] = primespiral(n,c) % PRIMESPIRAL Ulam's prime number spiral. % PRIMESPIRAL(n,c) plots the prime numbers in the n-by-n matrix % generated by storing c:c+n^2 in a spiral pattern starting in % the center. The concentration of primes on some of the diagonals % is remarkable. This phenom...
github
dylanmikesell/GEOS397-master
lugui.m
.m
GEOS397-master/Lecture/L16/ncm/lugui.m
7,516
utf_8
f1ee9b69b8cecaefc9984b193ffeb153
function [L,U,pv,qv] = lugui(A,pivotstrat) %LUGUI Gaussian elimination demonstration. % % LUGUI(A) shows the steps in LU decomposition by Gaussian elimination. % At each step of the elimination, the pivot that would be chosen by % MATLAB's partial pivoting algorithm is shown in magenta. You can use % the...
github
dylanmikesell/GEOS397-master
pchiptx.m
.m
GEOS397-master/Lecture/L16/ncm/pchiptx.m
1,909
utf_8
33910bf60a3c2d791257923d32102603
function v = pchiptx(x,y,u) %PCHIPTX Textbook piecewise cubic Hermite interpolation. % v = pchiptx(x,y,u) finds the shape-preserving piecewise cubic % interpolant P(x), with P(x(j)) = y(j), and returns v(k) = P(u(k)). % % See PCHIP, SPLINETX. % First derivatives h = diff(x); delta = diff(y)./h;...
github
dylanmikesell/GEOS397-master
surfer.m
.m
GEOS397-master/Lecture/L16/ncm/surfer.m
2,899
utf_8
1f97387a953a0c91e6e662b4d2b7f481
function [U,G] = surfer(root,n) % SURFER Create the adjacency graph of a portion of the Web. % [U,G] = surfer(root,n) starts at the URL root and follows % Web links until it forms an adjacency graph with n nodes. % U = a cell array of n strings, the URLs of the nodes. % G = an n-by-n sparse matrix wit...
github
dylanmikesell/GEOS397-master
membranetx.m
.m
GEOS397-master/Lecture/L16/ncm/membranetx.m
6,495
utf_8
a91f3b6b938cd3167ce5e4bd3af0b442
function [L,lambda] = membranetx(k,m,n,np) %MEMBRANETX Textbook version of MEMBRANE, eigenfunctions of L-membrane. % % L = MEMBRANETX(k) is the k-th eigenfunction of the L-shaped membrane. % [L,lambda] = MEMBRANETX(k) also returns the k-th eigenvalue. % % L = MEMBRANETX(k,m,n,np) sets some mesh and accurac...
github
dylanmikesell/GEOS397-master
fzerogui.m
.m
GEOS397-master/Lecture/L16/ncm/fzerogui.m
7,623
utf_8
6b01b2d2297dcbaedacc5b5084871380
function b = fzerogui(F,ab,varargin) %FZEROGUI Demonstrate the zero finding algorithm used by FZERO. % x = fzerogui(F,[a,b]) tries to find a zero of F(x) between a and b. % F(a) and F(b) must have opposite signs. fzerogui returns one % end-point of a small subinterval of [a,b] where F changes sign. % % ...
github
dylanmikesell/GEOS397-master
randtx.m
.m
GEOS397-master/Lecture/L16/ncm/randtx.m
2,600
utf_8
3d431cdf6ce8185678040244b836af4b
function U = randtx(arg1,arg2) % RANDTX Text book version of RAND % Uniformly distributed random numbers % This M-file exactly reproduces the numerical % behavior of the builtin RAND function. % Usage: % randtx 1-by-1 % randtx(n) n-by-n % randtx(m,n) m-by-n ...
github
dylanmikesell/GEOS397-master
waves.m
.m
GEOS397-master/Lecture/L16/ncm/waves.m
7,593
utf_8
4739dda6b825c986dd51c88296115c70
function waves % WAVES Wave equation in one and two space dimensions. % Solutions of the one- or two-dimensional wave equation are expressed % as a time-varying weighted sums of the first four eigenfunctions. % The one-dimensional domain is an interval of length pi, so the k-th % eigenvalue and eigenfunct...
github
dylanmikesell/GEOS397-master
splinetx.m
.m
GEOS397-master/Lecture/L16/ncm/splinetx.m
1,525
utf_8
e032c25fea8f31a541dee70e15905963
function v = splinetx(x,y,u) %SPLINETX Textbook spline function. % v = splinetx(x,y,u) finds the piecewise cubic interpolatory % spline S(x), with S(x(j)) = y(j), and returns v(k) = S(u(k)). % % See SPLINE, PCHIPTX. % First derivatives h = diff(x); delta = diff(y)./h; d = splineslopes(h,delta...
github
dylanmikesell/GEOS397-master
randntx.m
.m
GEOS397-master/Lecture/L16/ncm/randntx.m
4,578
utf_8
e58b12758b2e6f2204d1cc066f94ab19
function R = randntx(varargin) % RANDNTX Text book version of RANDN % Normally distributed random numbers % This M-file reproduces the numerical behavior of % the builtin RANDN function to within roundoff error. % Usage: % randntx 1-by-1 % randtnx(n) n-by-n % randntx(m,n) ...
github
dylanmikesell/GEOS397-master
lorenzgui.m
.m
GEOS397-master/Lecture/L16/ncm/lorenzgui.m
7,117
utf_8
6a77bb3e3f6d38a13c959b5e26a49c8f
function lorenzgui %LORENZGUI Plot the orbit around the Lorenz chaotic attractor. % This function animates the integration of the three coupled % nonlinear differential equations that define the Lorenz Attractor, % a chaotic system first described by Edward Lorenz of MIT. % As the integration proceeds yo...
github
dylanmikesell/GEOS397-master
bslashtx.m
.m
GEOS397-master/Lecture/L16/ncm/bslashtx.m
1,187
utf_8
25e277f9433f0389f2fb19f11a74359a
function x = bslashtx(A,b) % BSLASHTX Solve linear system (backslash) % x = bslashtx(A,b) solves A*x = b [n,n] = size(A); if isequal(triu(A,1),zeros(n,n)) % Lower triangular x = forward(A,b); return elseif isequal(tril(A,-1),zeros(n,n)) % Upper triangular x = backsubs(A,b); return elsei...
github
dylanmikesell/GEOS397-master
ncmgui.m
.m
GEOS397-master/Lecture/L16/ncm/ncmgui.m
11,157
utf_8
82a06fb008e33af71598ac7ced5360e8
function ncmgui %NCMGUI Master GUI for Numerical Computing with MATLAB. % NCMGUI provides an interface to nineteen of the graphical demostrations % from "Numerical Computing with MATLAB". Click on any graphic to access % the underlying function. % fern floatgui pivotgolf eigshow interpgui % ...
github
dylanmikesell/GEOS397-master
blackjack.m
.m
GEOS397-master/Lecture/L16/ncm/blackjack.m
15,008
utf_8
dc14f3c9e01ba56079ca8e1158e40927
function blackjack(N) % BLACKJACK. Use random numbers in Monte Carlo simulation. % Play the game of Blackjack, either one hand, or thousands of hands, % at a time, and display payoff statistics. % % In Blackjack, face cards count 10 points, aces count one or 11 points, % all other cards count their face value. ...
github
dylanmikesell/GEOS397-master
quadgui.m
.m
GEOS397-master/Lecture/L16/ncm/quadgui.m
4,277
utf_8
cead23b023687053bad3b15bf5e01eed
function [Q,fcount] = quadgui(F,a,b,tol,varargin) %QUADGUI Demonstrate numerical evaluation of a definite integral. % Q = QUADGUI(F,A,B) shows the steps in approximating the integral % of F(x) from A to B by adaptive extrapolated Simpson's quadrature. % % The shaded area shows the integral over the current ...
github
dylanmikesell/GEOS397-master
pivotgolf.m
.m
GEOS397-master/Lecture/L16/ncm/pivotgolf.m
9,232
utf_8
521307957c494aa7c2f2e6c6ff80d35d
function scoreout = pivotgolf(course,pivotstrat) % PIVOTGOLF Pivot Pickin' Golf. % Your goal is to use LUGUI to compute the LU decompositions of nine % matrices with as little roundoff error as possible. Your score for % each hole is norm(R,inf)+norm(Leps,inf)+norm(Ueps,inf) where % R = L*U - A(p,q) ...
github
dylanmikesell/GEOS397-master
censusgui.m
.m
GEOS397-master/Lecture/L16/ncm/censusgui.m
6,530
utf_8
18e706c37e663410dcbebbac0c8e65d1
function censusgui(callbackarg) %CENSUSGUI Try to predict the US population in the year 2010. % This example is older than MATLAB. It started as an exercise in % "Computer Methods for Mathematical Computations", by Forsythe, % Malcolm and Moler, published by Prentice-Hall in 1977. % The data set has been updated ...
github
dylanmikesell/GEOS397-master
quadtx.m
.m
GEOS397-master/Lecture/L16/ncm/quadtx.m
1,731
utf_8
4ce8853759c0b10d30ef81de8c117235
function [Q,fcount] = quadtx(F,a,b,tol,varargin) %QUADTX Evaluate definite integral numerically. % Q = QUADTX(F,A,B) approximates the integral of F(x) from A to B % to within a tolerance of 1.e-6. F is a string defining a function % of a single variable, an inline function, a function handle, or a % symb...
github
dylanmikesell/GEOS397-master
imagesvd.m
.m
GEOS397-master/Lecture/L16/ncm/imagesvd.m
3,932
utf_8
2a6f740ed9d3e61f6af569eff4f80201
function imagesvd(varargin) % IMAGESVD Principle component analysis of monochrome and color images. % IMAGESVD('file1.fmt','file2.fmt', ... ) reads the specified image % files. Any format known to IMREAD is acceptable. % IMAGESVD, with no arguments, provides popup menu access to several % images fro...
github
dylanmikesell/GEOS397-master
pdegui.m
.m
GEOS397-master/Lecture/L16/ncm/pdegui.m
12,887
utf_8
c9650832b3a9b911810acb608c1b92b1
function pdegui(action) %PDEGUI Demonstrate solution of model partial differential equations. % PDEGUI demonstrates the finite difference solution of model problems % involving Laplace's operator: % del^2_U = partial^2_U/partial_x^2 + partial^2_U/partial_y^2. % % The PDEs are: % Poisson equation, del^...
github
dylanmikesell/GEOS397-master
inregion.m
.m
GEOS397-master/Lecture/L16/ncm/inregion.m
4,117
utf_8
6d8a737768fe7929e5febf5be60a0a73
function [in, on] = inregion(x,y,xv,yv) %INREGION True for points inside or on a polygonal region. % IN = INREGION(X, Y, XV, YV) returns a matrix IN the size of X and Y. % IN(p,q) = 1 if the point (X(p,q), Y(p,q)) is either strictly inside or % on the edge of the polygonal region whose vertices are specified ...
github
dylanmikesell/GEOS397-master
eigsvdgui.m
.m
GEOS397-master/Lecture/L16/ncm/eigsvdgui.m
7,361
utf_8
c42b1ddc29488f2e50a9c5c41f362fff
function D = eigsvdgui(A,job) %EIGSVDGUI Demonstrate computation of matrix eigenvalues and singular values. % EIGSVDGUI shows three variants of the QR algorithm. % % EIGSVDGUI(A) for square, nonsymmetric A, or EIGSVDGUI(A,'eig'), reduces % A to Hessenberg form, then applies a double-shift, eigenvalue-preserv...
github
dylanmikesell/GEOS397-master
quadratic.m
.m
GEOS397-master/Lecture/L10/quadratic.m
926
utf_8
c989cdd7997c56001769864339eb70bb
function [ x1, x2 ] = quadratic( a, b, c ) % % USAGE: [x1,x2] = quadratic(a,b,c) % % DESCRIPTION: This function returns the roots of a quadratic equation. It % takes 3 input arguments which are the co-efficients of x2, x and the % constant term. It returns the roots. d = disc( a, b, c); % disc is a sub-function x1 = ...
github
dylanmikesell/GEOS397-master
ternplot.m
.m
GEOS397-master/Lecture/L23/alchemyst-ternplot/ternplot.m
2,112
utf_8
896c6a700975869aa0ab8b1ffa51e2ab
% TERNPLOT plot ternary phase diagram % TERNPLOT(A, B) plots ternary phase diagram for three components. C is calculated % as 1 - A - B. % % TERNPLOT(A, B, C) plots ternary phase data for three components A B and C. If the values % are not fractions, the values are normalised by dividing by the ...
github
dylanmikesell/GEOS397-master
simpletri.m
.m
GEOS397-master/Lecture/L23/alchemyst-ternplot/simpletri.m
863
utf_8
8f30e35c916d445026bcf340dc376195
% SIMPLETRI return simple triangulation for square datasets % TRI = SIMPLETRI(N) returns a matrix containing indexes to the % vertices of triangles fitted onto a square grid of size NxN. % % See also TERNSURF % Method: % Author Carl Sandrock 20031006 % To do % Modifications % Modifiers ...
github
dylanmikesell/GEOS397-master
terncoords.m
.m
GEOS397-master/Lecture/L23/alchemyst-ternplot/terncoords.m
1,149
utf_8
a35dc35aeee30d6b3e638edcd2b12f40
% TERNCOORDS calculate rectangular coordinates of fractions on a ternary plot % [X, Y] = TERNCOORDS(FA, FB) returns the rectangular X and Y coordinates % for the point with a fraction defined by FA and FB. It is assumed that % FA and FB are sensible fractions. % % [X, Y] = TERNCOORDS(FA, FB, FC) returns the sa...