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 | utvisionlab/gopt-master | maxcut_octave.m | .m | gopt-master/Thirdparty/manopt/examples/maxcut_octave.m | 10,225 | utf_8 | 1e3291732d3df9c409ac7e3c656bbef1 | function [x cutvalue cutvalue_upperbound Y] = maxcut_octave(L, r)
% Algorithm to (try to) compute a maximum cut of a graph, via SDP approach.
%
% function x = maxcut_octave(L)
% function [x cutvalue cutvalue_upperbound Y] = maxcut_octave(L, r)
%
% See examples/maxcut.m for help about the math behind this example. This... |
github | utvisionlab/gopt-master | sparse_pca.m | .m | gopt-master/Thirdparty/manopt/examples/sparse_pca.m | 6,374 | utf_8 | e4d16571861fa419aa8e0dca17d55711 | function [Z, P, X, A] = sparse_pca(A, m, gamma)
% Sparse principal component analysis based on optimization over Stiefel.
%
% [Z, P, X] = sparse_pca(A, m, gamma)
%
% We consider sparse PCA applied to a data matrix A of size pxn, where p is
% the number of samples (observations) and n is the number of variables
% (featu... |
github | utvisionlab/gopt-master | grassmannfactory.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/grassmann/grassmannfactory.m | 7,982 | utf_8 | a5f66f1bc2f60bdfc2ff8af9bd8ccacb | function M = grassmannfactory(n, p, k)
% Returns a manifold struct to optimize over the space of vector subspaces.
%
% function M = grassmannfactory(n, p)
% function M = grassmannfactory(n, p, k)
%
% Grassmann manifold: each point on this manifold is a collection of k
% vector subspaces of dimension p embedded in R^n.
... |
github | utvisionlab/gopt-master | elliptopefactory.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/symfixedrank/elliptopefactory.m | 7,271 | utf_8 | a13695f7011e4c9135781f05485d1f4d | function M = elliptopefactory(n, k)
% Manifold of n-by-n PSD matrices of rank k with unit diagonal elements.
%
% function M = elliptopefactory(n, k)
%
% The geometry is based on the paper,
% M. Journee, P.-A. Absil, F. Bach and R. Sepulchre,
% "Low-Rank Optimization on the Cone of Positive Semidefinite Matrices",
% SIO... |
github | utvisionlab/gopt-master | spectrahedronfactory.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/symfixedrank/spectrahedronfactory.m | 3,805 | utf_8 | bdbd9b8978e11013cdad8ed7158d5795 | function M = spectrahedronfactory(n, k)
% Manifold of n-by-n symmetric positive semidefinite natrices of rank k
% with trace (sum of diagonal elements) being 1.
%
% function M = spectrahedronfactory(n, k)
%
% The goemetry is based on the paper,
% M. Journee, P.-A. Absil, F. Bach and R. Sepulchre,
% "Low-Rank Optinizati... |
github | utvisionlab/gopt-master | sympositivedefinitefactory.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/symfixedrank/sympositivedefinitefactory.m | 5,348 | utf_8 | bc81f3e772ade05cd2256d29dd289730 | function M = sympositivedefinitefactory(n)
% Manifold of n-by-n symmetric positive definite matrices with
% the bi-invariant geometry.
%
% function M = sympositivedefinitefactory(n)
%
% A point X on the manifold is represented as a symmetric positive definite
% matrix X (nxn).
%
% The following material is referenced f... |
github | utvisionlab/gopt-master | symfixedrankYYfactory.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/symfixedrank/symfixedrankYYfactory.m | 3,496 | utf_8 | 82bc0919d4729ab40c5a55c2d6f19947 | function M = symfixedrankYYfactory(n, k)
% Manifold of n-by-n symmetric positive semidefinite matrices of rank k.
%
% function M = symfixedrankYYfactory(n, k)
%
% The geometry is based on the paper,
% M. Journee, P.-A. Absil, F. Bach and R. Sepulchre,
% "Low-Rank Optimization on the Cone of Positive Semidefinite Matric... |
github | utvisionlab/gopt-master | complexcirclefactory.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/complexcircle/complexcirclefactory.m | 3,558 | utf_8 | dde7799b7c8e18feed5ecb1baa3beb88 | function M = complexcirclefactory(n)
% Returns a manifold struct to optimize over unit-modulus complex numbers.
%
% function M = complexcirclefactory()
% function M = complexcirclefactory(n)
%
% Description of vectors z in C^n (complex) such that each component z(i)
% has unit modulus. The manifold structure is the Rie... |
github | utvisionlab/gopt-master | fixedrankfactory_3factors_preconditioned.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/fixedrank/fixedrankfactory_3factors_preconditioned.m | 11,365 | utf_8 | 586646939b844c902e69840302ddf7ad | function M = fixedrankfactory_3factors_preconditioned(m, n, k)
% Manifold of m-by-n matrices of rank k with polar quotient geometry.
%
% function M = fixedrankLSRquotientfactory(m, n, k)
%
% A point X on the manifold is represented as a structure with three
% fields: L, S and R. The matrices L (mxk) and R (nxk) are ort... |
github | utvisionlab/gopt-master | fixedrankfactory_2factors_subspace_projection.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/fixedrank/fixedrankfactory_2factors_subspace_projection.m | 6,050 | utf_8 | b93294f6129f3147f02cec96edb756b2 | function M = fixedrankfactory_2factors_subspace_projection(m, n, k)
% Manifold of m-by-n matrices of rank k with quotient geometry.
%
% function M = fixedrankfactory_2factors_subspace_projection(m, n, k)
%
% This follows the quotient geometry described in the following paper:
% B. Mishra, G. Meyer, S. Bonnabel and R. S... |
github | utvisionlab/gopt-master | fixedrankfactory_2factors_preconditioned.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/fixedrank/fixedrankfactory_2factors_preconditioned.m | 5,639 | utf_8 | 32c031047b7b6e7aae3ad320770bf054 | function M = fixedrankfactory_2factors_preconditioned(m, n, k)
% Manifold of m-by-n matrices of rank k with new balanced quotient geometry
%
% function M = fixedrankfactory_2factors_preconditioned(m, n, k)
%
% This follows the quotient geometry described in the following paper:
% B. Mishra, K. Adithya Apuroop and R. Se... |
github | utvisionlab/gopt-master | fixedrankembeddedfactory.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/fixedrank/fixedrankembeddedfactory.m | 10,556 | utf_8 | 53c6143e605b4b40dd275f13525aced2 | function M = fixedrankembeddedfactory(m, n, k)
% Manifold struct to optimize fixed-rank matrices w/ an embedded geometry.
%
% function M = fixedrankembeddedfactory(m, n, k)
%
% Manifold of m-by-n real matrices of fixed rank k. This follows the
% geometry described in this paper (which for now is the documentation):
% B... |
github | utvisionlab/gopt-master | fixedrankfactory_3factors.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/fixedrank/fixedrankfactory_3factors.m | 5,846 | utf_8 | e63dc014f3c7509346e84937620a5c46 | function M = fixedrankfactory_3factors(m, n, k)
% Manifold of m-by-n matrices of rank k with polar quotient geometry.
%
% function M = fixedrankfactory_3factors(m, n, k)
%
% Follows the polar quotient geometry described in the following paper:
% G. Meyer, S. Bonnabel and R. Sepulchre,
% "Linear regression under fixed-r... |
github | utvisionlab/gopt-master | fixedrankMNquotientfactory.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/fixedrank/fixedrankMNquotientfactory.m | 4,311 | utf_8 | 5e88218a79dd6351eac77678b441a4ed | function M = fixedrankMNquotientfactory(m, n, k)
% Manifold of m-by-n matrices of rank k with quotient geometry.
%
% function M = fixedrankMNquotientfactory(m, n, k)
%
% This follows the quotient geometry described in the following paper:
% P.-A. Absil, L. Amodei and G. Meyer,
% "Two Newton methods on the manifold of f... |
github | utvisionlab/gopt-master | fixedrankfactory_2factors.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/fixedrank/fixedrankfactory_2factors.m | 5,627 | utf_8 | b32ff8702d64bb8e4d61ada797f20a33 | function M = fixedrankfactory_2factors(m, n, k)
% Manifold of m-by-n matrices of rank k with balanced quotient geometry.
%
% function M = fixedrankfactory_2factors(m, n, k)
%
% This follows the balanced quotient geometry described in the following paper:
% G. Meyer, S. Bonnabel and R. Sepulchre,
% "Linear regression un... |
github | utvisionlab/gopt-master | obliquefactory.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/oblique/obliquefactory.m | 6,363 | utf_8 | 584a49adde66f63d54f6ea9115f1436a | function M = obliquefactory(n, m, transposed)
% Returns a manifold struct to optimize over matrices w/ unit-norm columns.
%
% function M = obliquefactory(n, m)
% function M = obliquefactory(n, m, transposed)
%
% Oblique manifold: deals with matrices of size n x m such that each column
% has unit 2-norm, i.e., is a poin... |
github | utvisionlab/gopt-master | stiefelfactory.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/stiefel/stiefelfactory.m | 4,826 | utf_8 | ae1077c390f151fc955fc2d88c6d8a68 | function M = stiefelfactory(n, p, k)
% Returns a manifold structure to optimize over orthonormal matrices.
%
% function M = stiefelfactory(n, p)
% function M = stiefelfactory(n, p, k)
%
% The Stiefel manifold is the set of orthonormal nxp matrices. If k
% is larger than 1, this is the Cartesian product of the Stiefel m... |
github | utvisionlab/gopt-master | rotationsfactory.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/rotations/rotationsfactory.m | 4,696 | utf_8 | 98b73af2eb2c31fd21f041479f887efc | function M = rotationsfactory(n, k)
% Returns a manifold structure to optimize over rotation matrices.
%
% function M = rotationsfactory(n)
% function M = rotationsfactory(n, k)
%
% Special orthogonal group (the manifold of rotations): deals with matrices
% R of size n x n x k (or n x n if k = 1, which is the default)... |
github | utvisionlab/gopt-master | spherecomplexfactory.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/sphere/spherecomplexfactory.m | 3,145 | utf_8 | 9936c34e8f183316ea93ebb7aedd8681 | function M = spherecomplexfactory(n, m)
% Returns a manifold struct to optimize over unit-norm complex matrices.
%
% function M = spherecomplexfactory(n)
% function M = spherecomplexfactory(n, m)
%
% Manifold of n-by-m complex matrices of unit Frobenius norm.
% By default, m = 1, which corresponds to the unit sphere in... |
github | utvisionlab/gopt-master | spherefactory.m | .m | gopt-master/Thirdparty/manopt/manopt/manifolds/sphere/spherefactory.m | 3,295 | utf_8 | 1e285f6b26d327bc90eb44661e9c2725 | function M = spherefactory(n, m)
% Returns a manifold struct to optimize over unit-norm vectors or matrices.
%
% function M = spherefactory(n)
% function M = spherefactory(n, m)
%
% Manifold of n-by-m real matrices of unit Frobenius norm.
% By default, m = 1, which corresponds to the unit sphere in R^n. The
% metric is... |
github | utvisionlab/gopt-master | trustregions.m | .m | gopt-master/Thirdparty/manopt/manopt/solvers/trustregions/trustregions.m | 26,863 | utf_8 | 6d2d479d4650f9ce3dd7c60c17f60ddb | function [x, cost, info, options] = trustregions(problem, x, options)
% Riemannian trust-regions solver for optimization on manifolds.
%
% function [x, cost, info, options] = trustregions(problem)
% function [x, cost, info, options] = trustregions(problem, x0)
% function [x, cost, info, options] = trustregions(problem,... |
github | utvisionlab/gopt-master | manopt_contract_estimate.m | .m | gopt-master/kotz/manopt_contract_estimate.m | 2,437 | utf_8 | afb7a1e48924ed42834fac765990f93b | function [C,info] = manopt_contract_estimate(Data,initC,func,gfunc,method,options)
%
% [C,info] = manopt_estimate(Data,initC,a,method,options)
%
% This function calculates the covariance in log-contractive case
%
% C - \sum_{i=1}^{n} x_i @gfunc(x_i' C^-1 x_i) x_i' =0
%
% Where C is the covariance matrix
%
% ... |
github | utvisionlab/gopt-master | paramA.m | .m | gopt-master/eg/paramA.m | 2,423 | utf_8 | e10c47c36536df2751f794613a8898c2 | function cons = paramA(d)
%%
% Calculating parameter A (given by the following expectation
%
% A = E[ \log \sum d_i N_i^2] - E[\log \sum N_i^2]
%
% where N_is are indepependent zero-mean & univ-variance Gaussians
%
% d should be a column vector
if size(d,2) > 1
d = d.';
end
d = sort(d);
n = length(d);
% Compu... |
github | utvisionlab/gopt-master | manopt_estimate.m | .m | gopt-master/eg/manopt_estimate.m | 2,546 | utf_8 | 6682121eec9d3cf07638de9cb649e92a | function [C,info] = manopt_estimate(Data,initC,a,method,options)
%
% [C,info] = manopt_estimate(Data,initC,a,method,options)
%
% This function is for estimating the ML parameters of
% elliptical gamma distribution (EGD) which has the following density:
%
% f(X)=Gamma(0.5*n)/(pi^(0.5*n))*1/Gamma(a)*1/b^a*det(C)^-0.... |
github | utvisionlab/gopt-master | eg_concave_estimate.m | .m | gopt-master/eg/eg_concave_estimate.m | 3,102 | utf_8 | 602c97baad48a0dfc8c161f4022ad011 | function [C,res] = eg_concave_estimate(Data, initC, a)
%
% [C,res] = eg_concave_estimate(Data, initC, a)
%
% This function is for estimating the ML parameters for concave case
% (a>=n/2)
% elliptical gamma distribution (EGD) which has the following density:
%
% f(X)=Gamma(0.5*n)/(pi^(0.5*n))*1/Gamma(a)*1/b^a*d... |
github | nickabattista/Sankara_Stones-master | Nonlinear_Polar_2D.m | .m | Sankara_Stones-master/Nonlinear_Polar_2D/Nonlinear_Polar_2D.m | 16,539 | utf_8 | ec519d42730bc02f52de93c44ed7c0a4 | function Nonlinear_Polar_2D
% Author: Nicholas A. Battista
% University: Rochester Institute of Technology
% Created: Octoer 2009
% Last Revision: September 2010
%
%This is a 2D non-linear pseudo-spectral elliptic PDE solver in polar coordinates
%
%Running the code solves the following non-linear polar elli... |
github | nickabattista/Sankara_Stones-master | Adv_Diff_PDE_1D.m | .m | Sankara_Stones-master/Linear_Adv_Diff/Adv_Diff_PDE_1D.m | 17,896 | utf_8 | 22538f415cc8d257671610b7d3495ebf | function Adv_Diff_PDE_1D()
%Author: Nicholas A. Battista
%University: UNC at Chapel Hill
%Date Created: August 4, 2014
%Last Modified: August 22, 2014
%Solves advjection-diffusion equations of the form: u_t + s*u_x = d*uxx + g(x)
%w/ u(0,x) = f(x)
%w/ s as wave-speed
%w/ d as diffusion coefficient
%1st: find project... |
github | nickabattista/Sankara_Stones-master | Nonlinear_2D.m | .m | Sankara_Stones-master/Nonlinear_2D/Nonlinear_2D.m | 12,797 | utf_8 | 2eb0ff7715cc6b5e093f9fd4a78ac5cc | function Nonlinear_2D
% Author: Nicholas A. Battista
% University: Rochester Institute of Technology
% First Created: October 2008
% Last Revision: September 2010
%
%This is a 2D non-linear elliptic, pseudo-spectral PDE solver
%It assumes a solution of the form: Sum_i Sum_j c_ij T_i(x) T_j(y)
%
%It solves t... |
github | dagwa/wholecell-cytokinesis-master | FtsZPolymerization.m | .m | wholecell-cytokinesis-master/matlab/karr-original/FtsZPolymerization.m | 21,721 | utf_8 | 8f69048bd57f70bb9765ccd7fe3aa8cc | %FtsZPolymerization
%
% @wholeCellModelID Process_FtsZPolymerization
% @name FtsZPolymerization
% @description
%
% In the cytosol, FtsZ can exist in one of multiple states: inactivated monomer,
% deactivated monomer (GDP bound), activated monomer (GTP bound), nucleated
% (dimer of two activated monomers), o... |
github | dagwa/wholecell-cytokinesis-master | FtsZPolymerization_Test.m | .m | wholecell-cytokinesis-master/matlab/karr-original/FtsZPolymerization_Test.m | 13,647 | utf_8 | b3e53d54d2a177c32260a72bcf9987ce | %FtsZPolymerization process test case
%
% Author: Jayodita Sanghvi, jayodita@stanford.edu
% Author: Jared Jacobs, jmjacobs@stanford.edu
% Affilitation: Covert Lab, Department of Bioengineering, Stanford University
% Last updated: 9/1/2010
classdef FtsZPolymerization_Test < edu.stanford.covert.cell.sim.ProcessTestCase
... |
github | sjgershm/mfit-master | factorial_models.m | .m | mfit-master/factorial_models.m | 1,644 | utf_8 | 024634d719389fdc57ae02151ad7258d | function opts = factorial_models(Opts)
% Create a factorial space of models.
%
% USAGE: opts = factorial_models(Opts)
%
% INPUTS:
% Opts - meta options structure, with the same fields as "opts" (see
% set_opts.m) but each field accepts a vector of parameters
%
% OUTPU... |
github | renvieir/ioc-master | cplexgui.m | .m | ioc-master/cplex/examples/src/matlab/cplexgui.m | 18,464 | utf_8 | c16763019b773d9afd4f65318d8d6ace | function varargout = cplexgui(varargin)
% A GUI for CPLEX
%
% The starting point for the GUI was code generated by MATLAB's
% GUIDE command.
%
% CPLEXGUI, by itself, creates a new CPLEXGUI or raises the existing
% singleton*.
%
% H = CPLEXGUI returns the handle to a new CPLEXGUI or the handle to
% the exi... |
github | electrokean/grbl-master | grbl_sim.m | .m | grbl-master/test/matlab/grbl_sim.m | 17,154 | utf_8 | c92e782fc569411047a3de164a8cb78f | % ----------------------------------------------------------------------------------------
% The MIT License (MIT)
%
% Copyright (c) 2014 Sungeun K. Jeon
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% i... |
github | dicecco1/fpga_caffe-master | classification_demo.m | .m | fpga_caffe-master/matlab/demo/classification_demo.m | 5,466 | utf_8 | 45745fb7cfe37ef723c307dfa06f1b97 | function [scores, maxlabel] = classification_demo(im, use_gpu)
% [scores, maxlabel] = classification_demo(im, use_gpu)
%
% Image classification demo using BVLC CaffeNet.
%
% IMPORTANT: before you run this demo, you should download BVLC CaffeNet
% from Model Zoo (http://caffe.berkeleyvision.org/model_zoo.html)
%
% *****... |
github | flavioluiz/AeroFlex-master | odeprog.m | .m | AeroFlex-master/main/odeprog.m | 3,069 | utf_8 | 939ebb647c72f7c0c333a5681c553dae | function status = odeprog(t,y,flag,varargin)
%status = odebarplot(t,y,flag,varargin)
% ODE progress display function with interrupt control
% Displays a vertical bar plot that fills as the simulation
% nears its completion. Also displays time ellapsed and estimates
% time remaining in the simulation. To avoid... |
github | flavioluiz/AeroFlex-master | atmosfera.m | .m | AeroFlex-master/main/atmosfera.m | 547 | utf_8 | 5c2e3291026ebde3bbc2bd580d22dc5a | %......................Modelo densidade...................................
function rho = atmosfera(H)
g0 = 9.81;
rho0 = 1.225;
R = 287.053;L=-6.5e-3;
T0 = 288.15;
if H<= 11000
rho = rho0*(temperatura(H)/T0)^-(1+g0/(R*L));
else
rho = rho0*(temperatura(11000)/T0)^-(1+g0/(R*L))*exp(-g0*(H-11000)/(R*temperatura... |
github | flavioluiz/AeroFlex-master | flutter_speed.m | .m | AeroFlex-master/main/flutter_speed.m | 2,224 | utf_8 | 7543ecc003bf71799189cd3ebb083f70 | % FLUTTER SPEED
% This function looks for the instability speed from Vwind_initial to
% Vwind_final, up to a tolerance given by 'tol' using BINARY SEARCH.
%
%
% some limitations: 1) it works only for aeroelasticity cases (without
% rigid body degrees of freedom)
% 2) it does not compute the equilibrium condition at eac... |
github | flavioluiz/AeroFlex-master | create_uniform_structure.m | .m | AeroFlex-master/main/create_uniform_structure.m | 1,042 | utf_8 | ca00a74bc278bf773a438c1a8f58f041 | % creates a structure with constant parameters (mass / unit length,
% sectional Inertia, aerodynamic parameters, etc.)
function membro = create_uniform_structure(pos_cg, initial_node_rot, length, Inertia, mcs, KG, CG, aeroparams, geometry, num_elements)
ds = length/num_elements;
rot = initial_node_rot;
... |
github | flavioluiz/AeroFlex-master | example2.m | .m | AeroFlex-master/examples/example2/example2.m | 7,738 | utf_8 | ab0bcf94b2e92af136ae031ae69d2efc | %%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% AeroFlex - Example 2 - Aeroelasticity %
% - finds equilibrium (aerodynamics + gravity) %
% - linearizes to verify local stability %
% - find flutter speed: li... |
github | flavioluiz/AeroFlex-master | example4.m | .m | AeroFlex-master/examples/example4/example4.m | 8,273 | utf_8 | 58a055a9aaeda80fda1a02f87d578133 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% AeroFlex - Example 4 - Flexible flying wing flight dynamics %
% Simulation and comparison with Rigid body %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function example4
clc;
... |
github | flavioluiz/AeroFlex-master | example1.m | .m | AeroFlex-master/examples/example1/example1.m | 7,254 | utf_8 | 8f3120ce2c3feefcabe9087d5deafb77 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% AeroFlex - Example 1 - Structural Dynamics %
% - computes eigenvalues/eigenvectors of linear structural dynamics %
% - finds equilibrium (only gravity) %
% - simulation (beam starts unde... |
github | flavioluiz/AeroFlex-master | exact.m | .m | AeroFlex-master/examples/example1/exact.m | 1,734 | utf_8 | d9851f54097df4647772cd23a5f020cc | function exact_freqs = exact(num_bending_vert, num_bending_hor, num_torsion)
% beam length
Length = 16;
% sectional rigidity matrix
K22 = 1e4; %GJ
K33 = 2e4; %flat bend: EI
K44 = 4e6; %chord bend: EI
I22 = 0.0;
I33 = 0.1;
I11 = 0.1;
mcs = 0.75;
exact_bendi... |
github | flavioluiz/AeroFlex-master | example3.m | .m | AeroFlex-master/examples/example3/example3.m | 7,534 | utf_8 | d2f245a144940e342a73dde75b60d29f | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% AeroFlex - Example 3 - Aileron Reversals %
% - include aerodynamic control surfaces %
% - include second semi-wing %
% - perform simulations to verif... |
github | flavioluiz/AeroFlex-master | exact.m | .m | AeroFlex-master/tests/exact.m | 1,734 | utf_8 | d9851f54097df4647772cd23a5f020cc | function exact_freqs = exact(num_bending_vert, num_bending_hor, num_torsion)
% beam length
Length = 16;
% sectional rigidity matrix
K22 = 1e4; %GJ
K33 = 2e4; %flat bend: EI
K44 = 4e6; %chord bend: EI
I22 = 0.0;
I33 = 0.1;
I11 = 0.1;
mcs = 0.75;
exact_bendi... |
github | YuejiangLIU/MPC-master | ex2.m | .m | MPC-master/MPC_Ex2/ex2.m | 7,957 | utf_8 | 1b08fa703e506c73200c39a9d3b2ac55 | %%%
% MPC-425, Exercise 2
%%%
function result = ex2(mu_series)
% Problem:
% min 0.5 * z' * prob.H * z + prob.q' * z
% s.t. prob.G * z <= prob.d
%% Choose problem parameters
dim = 2; % Number of optimization variables
speed = 'fast'; % set to 'fast' for fast convergence, and 'slow' to see what's going on
seed = ... |
github | YuejiangLIU/MPC-master | ex4_Yuejiang.m | .m | MPC-master/MPC_Ex4/ex4_Yuejiang.m | 3,879 | utf_8 | f82d0381dc3e414b5297bf378176cbff | % MPC Ex4 | Yuejiang LIU | 2015 April
function ex4()
clear all
clc;
close all;
%% Problem Setup
A = [0.9752 1.4544
-0.0327 0.9315];
B = [0.0248;0.0327];
S_X = [ -1 0
1 0
0 -1
0 1];
s_X = [5;5;0.2;0.2];
Sori = Polyhedron(S_X,s_X);
S_U = [-1;1];
s_U = [1.75;1.75];
Q = eye(length(A))*10;
R =... |
github | YuejiangLIU/MPC-master | Ex5_Yuejiang_LIU.m | .m | MPC-master/MPC_Ex5/Ex5_Yuejiang_LIU.m | 3,942 | utf_8 | c67494108dfd0d73313bed753c9907ac | % MPC Ex5 | Yuejiang LIU | Apr. 2015
function ex5()
clear all; clc; close all;
PLOTOUT = 1;
nx = 2;
nd = 1;
A = [0.7115 -0.4345; 0.4345 0.8853];
B = [0.2173; 0.0573];
C = [0 1];
Bd = zeros(nx,1);
Cd = 1;
AA = [A Bd; zeros(nd,nx) eye(nd)];
CC = [C Cd];
p = [0.5 0.6 0.7];
L = place(AA',-CC',p).';
return;
% initial sta... |
github | NSCLAlt/DynacGUI-master | gencosydeck.m | .m | DynacGUI-master/gencosydeck.m | 11,256 | utf_8 | 9b951412c4d37d2c23985bb001aab15c | function [settings,freqlist]=gencosydeck(hObject, ~,varargin)
% COSY Deck Generator for DynacGUI
% Reads in a layout file, device type file, and array of settings,
% and outputs a (hopefully) properly formatted COSY deck.
%
% COSY is copyright by Berz and Makino, and is not maintained or supported
% by the author of... |
github | NSCLAlt/DynacGUI-master | emitplot.m | .m | DynacGUI-master/emitplot.m | 62,792 | utf_8 | 4a5ee9dc14a2db09f2f29deae74a678d | function varargout=emitplot(freqlist,varargin)
%
% Plotting routine for DynacGUI
%
%Plots the entire contents of a DYNAC "emit.plot" file if there are no
%input arguments. If there are two input arguments, plots ONE graph starting
%at the offset given by the second input.
%Input arguments - freqeuncy list, file posi... |
github | NSCLAlt/DynacGUI-master | DynacGUIFit.m | .m | DynacGUI-master/DynacGUIFit.m | 36,557 | utf_8 | 545d441e2bdcdbd9e21eed94c1781ba8 | function varargout = DynacGUIFit(varargin)
% DYNACGUIFIT MATLAB code for DynacGUIFit.fig
%
% DynacGUIFit is a graphical interface between the Matlab
% Optimization Toolbox and Dynac. It will not work unless you have
% Dynac, Matlab, AND the Matlab Optimization Toolbox installed. (The
% M... |
github | NSCLAlt/DynacGUI-master | loadcs.m | .m | DynacGUI-master/loadcs.m | 7,037 | utf_8 | 6715ef6eaf34dc4117658964076dc37e | function loadcs(hObject,~)
% Dynac GUI Module to load parameters from a Control System saveset.
%
% This software is Copyright by the Board of Trustees of Michigan
% State University (c) Copyright 2015.
%
% Contact Information:
% Facility for Rare Isotope Beam
% Michigan State University
% East Lansing, ... |
github | NSCLAlt/DynacGUI-master | DG_viewresults.m | .m | DynacGUI-master/DG_viewresults.m | 22,085 | utf_8 | 955d1c7c714eca634216ac1d57bae94b | function DG_viewresults(~,~)
%View Saved Results from DynacGUI runs
%
%
% This software is Copyright by the Board of Trustees of Michigan
% State University (c) Copyright 2015.
%
% Contact Information:
% Facility for Rare Isotope Beam
% Michigan State University
% East Lansing, MI 48824-1321
% http://... |
github | NSCLAlt/DynacGUI-master | gendeck.m | .m | DynacGUI-master/gendeck.m | 42,221 | utf_8 | 66d4155661c8fa4f1777903770c67f1a | function [settings,freqlist]=gendeck(outputfilename,settings,layoutfilename,devicefilename,...
varargin)
% Deck Generator for DynacGUI
%
% Reads in a layout file, device type file, and array of settings,
% and outputs a (hopefully) properly formatted Dynac deck.
% The final, optional argument, is the name of an inp... |
github | NSCLAlt/DynacGUI-master | rescaletune.m | .m | DynacGUI-master/rescaletune.m | 6,008 | utf_8 | 114c103752b11c34250961b5e090344f | function [settings]=rescaletune(settings,layoutfilename,devicefilename,...
escale,bscale,cavscale,startline,endline)
% Tune Rescaling Utility for DynacGUI
%
% Reads in a layout file, device type file, and array of settings,
% and rescales the settings based on an E and B scaling factor.
% Returns the array of set... |
github | NSCLAlt/DynacGUI-master | DynacGUI.m | .m | DynacGUI-master/DynacGUI.m | 118,979 | utf_8 | 3687d656adcff289d06435e3005b7196 | function varargout = DynacGUI(varargin)
% DynacGUI MATLAB code for DynacGUI.fig
%
% DynacGUI is a graphical frontend to the beam dynamics code Dynac. It
% allows for simplified creation of Dynac input decks, on-the-fly tune
% adjustment, results viewing, and other features. It is still a work in
% progress, a... |
github | JohannesPfeifer/Particle_Filtering-master | chol_SE.m | .m | Particle_Filtering-master/Tools/chol_SE.m | 10,929 | utf_8 | 92a83ddc67d4e17fee6a470dd1797561 | function [R,indef, E, P]=chol_SE(A,pivoting)
% [R,indef, E, P]=chol_SE(A,pivoting)
% Performs a (modified) Cholesky factorization of the form
%
% P'*A*P + E = R'*R
%
% As detailed in Schnabel/Eskow (1990), the factorization has 2 phases:
% Phase 1: While A can still be positive definite, pivot on the maximum dia... |
github | littlebrat/Hexapod-master | displayLeg.m | .m | Hexapod-master/Simulation/sim/displayLeg.m | 1,033 | utf_8 | bdb80cb501eee897ef00b185d9e349f4 |
function Tr=displayLeg(T, th2, th3, th4)
%t1 t2 t3 : teta1 teta2 teta3
%T1 T2 T3: transformation matrices 1 2 and 3
syms t2 t3 t4 real
%apply angles to transformation matrices
Tr{1}= T{1}; %T01 is constant
Tr{2}=Tr{1}*T{2};
Tr{3}=subs(Tr{2}*T{3}, t2, th2);
Tr{4}=subs(Tr{3}*T{4}, t3, th3);
Tr{5... |
github | pawbz/xBMI-master | Carlos_script.m | .m | xBMI-master/matlab_Carlos/Carlos_script.m | 12,635 | utf_8 | b4367602cadcddc6f119bfe1faec4c83 | function Carlos_script
clc;
addpath(genpath('./'));
%%
a=colormap('gray');b=a(length(a):-1:1,:);groy=colormap(b);
P.perc=98;
%%
Diff=[250,500,750;450,450,500];ITRCLx=-100;ITRCLz=0;zSRC=250;
nx0=101;dx=10;
xRCV=(0:nx0-1).*dx;
xSRC=linspace(0,1000,200); nsrc=length(xSRC);
dt=5e-4;
rcvz=10;rcvzz=repmat(rcvz,1,nx0);
nx... |
github | artmunich/LLE-master | GSR.m | .m | LLE-master/GSR.m | 661 | utf_8 | 7e51489b7b43d844a42c91963c9b0880 | %Gram-Schmidt reorthonormalization
%
%Algorithm:
% A = (a1,a2,...,an)
% After GSR, we get Q = (q1,q2,...,qn)
% 1. Normalize a1 as q1
% 2. Project a(k+1) on Span(q1,q2,...,qk), pk is accquired.
% 3. Normalize a(k+1)-pk we derive q(k+1)
% 4. Loop till the end.
%
%Author: Xiawei Huai
%Date: 2015/5/31
function... |
github | artmunich/LLE-master | GS.m | .m | LLE-master/GS.m | 891 | utf_8 | 5d82fbf89650764eb2d1128eba279a93 | %GS.m
%Function of Gram-Schmidt process
%
%Input:
% A: nr-by-nc matrix
%Output:
% Q: Reorthogonalized matrix with the same size of A;
% znorm: norm of each column with size nc*1
%
%Author: Xiawei Huai
%Date: 2015/6/3
%
%As a m-by-3 matrix, we have:
% function A = ThreeGS(V)
% v1 = V(:,1);
% v2 = V(:,2);
% v3 = V(... |
github | artmunich/LLE-master | QR4GSR.m | .m | LLE-master/QR4GSR.m | 1,071 | utf_8 | 7d6578974d689c1d22b76c5b388ef16d | %QR decomposition of Gram-Schmidt Reorthonormalization:
%To decompose a matrix of m-by-n size into a orthonormal matrix Q of
%size m-by-n and a upper-triangle matrix R of size n-by-n:
% A = (a1,...,an)
% Q = (q1,...,qn)
% |r11 r12 ... r1n|
% R = |0 r22 ... r2n|
% |0 0 ... rmn|
%
%Algorithm:
% ... |
github | kunaljathal/VAD-master | Periodicity.m | .m | VAD-master/Periodicity.m | 2,921 | utf_8 | 9b531ce14c267cf6f5a85ea02604853b | % *************************************************************************
% Kunal Jathal
% N19194426
% DST 2 - Final Project
%
% Name: Periodicity
%
% Purpose: Helper Function
%
% Description:
%
% This function computes the periodicity of a given signal. It does so by
% making use of a special modified version ... |
github | kunaljathal/VAD-master | VoiceActivityDetector.m | .m | VAD-master/VoiceActivityDetector.m | 16,787 | utf_8 | eb6109d9f1b8b064d2f48b3887b2de04 | % *************************************************************************
% Kunal Jathal
%
% VOICE ACTIVITY DETECTOR
%
% Name: VoiceActivityDetector
%
% Purpose: Main Function
%
% Description:
%
% This function implements a rad VAD. It works by using voiced band energy
% ratios, periodicity measures, running an... |
github | kunaljathal/VAD-master | frameSplit.m | .m | VAD-master/frameSplit.m | 1,833 | utf_8 | 6c78ae93970ced02f28102c95f7e0d99 | % *************************************************************************
% Kunal Jathal
% N19194426
% DST 2 - Final Project
%
% Name: frameSplit
%
% Purpose: Helper Function
%
% Description:
%
% This splits the vector inputSignal(:) up into frames. Each frame is of
% length LEN and occupies one row of the out... |
github | kotogadekiru/UrsulaGIS-master | nmfRobust.m | .m | UrsulaGIS-master/src/tasks/old/biclustering_code/nmfRobust.m | 1,906 | utf_8 | c16367bf2e042278e7e7113e5bb8d34e | function [U, V] = nmfRobust(M, q, lambdaU, lambdaV, lambdaE, ...
initX, initY)
maxIter = 500;
tol = 1e-4;
if nargin == 5
[X, S, Y] = svds(M, q);
S = sqrt(S);
X = abs(X) * S;
Y = S * abs(Y)';
X = sparse(X);
Y = sparse(Y);
else
X = initX;
... |
github | caxenie/fuzzy-ctrl-demo-master | compute_membership.m | .m | fuzzy-ctrl-demo-master/compute_membership.m | 401 | utf_8 | f04b148b41f1207514a2820f916cc805 | % membership function computation
function o = compute_membership(in, type)
% check type of memership function
switch(type)
case 'f11'
o = min([max([0, (in-80)/-160]), 1]);
case 'f12'
o = 1 - min([max([0, (in-80)/-160]), 1]);
case 'f21'
o = (-abs(in)... |
github | caxenie/fuzzy-ctrl-demo-master | generate_field.m | .m | fuzzy-ctrl-demo-master/generate_field.m | 772 | utf_8 | f8bd97bdaadf2ad4c063ed2a07554401 | % create the squared soccer field using a given size
function fig = generate_field(fsize)
close all;
%% draw center circle
t = linspace(0,2*pi,100000);
cirX=fsize/2; cirY=fsize/2;
r=50;
x = r*cos(t)+cirX;
y = r*sin(t)+cirY;
plot(x,y, 'Color','white', 'LineWidth', 4); hold on;
%% left post
t2 = linspace(3*pi, 3*pi/2,1... |
github | caxenie/fuzzy-ctrl-demo-master | start_trajectory_generator.m | .m | fuzzy-ctrl-demo-master/start_trajectory_generator.m | 2,354 | utf_8 | 5d837a0807433fb9df39dfe9633b5b59 | % start the trajectory generator to generate reference trajectories for
% fuzzy control of WMR in robot soccer
function start_trajectory_generator(ttype)
global kkkk xxx yyy teta P v_final;
switch ttype
% loop circle _|^|O_
case 'complex1';
xxx = [15, 20, 40, 60, 80, 100, 120, 100, 80, 10... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | geom_convlines.m | .m | BenthicAnalysisTool-master/support_functions/geom_convlines.m | 10,974 | utf_8 | a763cd51596e07ab08e682594132b44a |
%geom_convlines
function [imnew,axesofnew,H,mmperpix_x,mmperpix_y]=geom_convlines(files)
% user-interactive function to geometrically transform an image by correcting converging lines, and
% then work out the spatial resolutions in the x- and y- directions
%
% written by DB aug09
% using functions from: % CMP Vision ... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | ax_bdfcn.m | .m | BenthicAnalysisTool-master/gui_functions/ax_bdfcn.m | 3,181 | utf_8 | b57ccb86e3aabadcf26403492433e947 |
function [] = ax_bdfcn(varargin)
% ax_bdfcn (short for: axes button down function)
% called by bat_gui_count.m
% 1. puts the points on the sub-window,
% 2. updates structure accordingly
%
% Written by Daniel Buscombe, Nov 2009
% revised December 2010, Apr 2012
% School of Marine Science and Engineering, University of... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | bat_gui_count.m | .m | BenthicAnalysisTool-master/gui_functions/bat_gui_count.m | 6,175 | utf_8 | 7d5d66b0e9ed43cb2f409e830895e06d |
function bat_gui_count(flag,fid,h0)
% main counting program. The bizniss!!
% sp = list of species (text)
% flag = which button has been pressed in gui
% fid = file identifier of the txt log
% h0 = main gui handle
%
% Written by Daniel Buscombe, Nov 2009
% revised december 2010,
% revised Apr 2012 so only the last poi... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | zoomfix.m | .m | BenthicAnalysisTool-master/gui_functions/zoomfix.m | 732 | utf_8 | a849a5668851cc89ffc931c1bef801ac |
function zoomfix
% for fixing zoom problems, should they arise, in bat.m
% sometimes the 'zoom to full extent' button doesn't do the job
% in these cases, press the 'globe' icon on the main figure toolbar
% this function is activated when the 'globe' icon is pressed
%
% Written by Daniel Buscombe, Nov 2009
% School of... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | um1_call.m | .m | BenthicAnalysisTool-master/gui_functions/um1_call.m | 3,304 | utf_8 | 4ae5cf22bd777dd216f2d4f438e29bd7 |
function [] = um1_call(varargin)
% for deleting points in the sub-window
%
% Written by Daniel Buscombe, Nov 2009
% revised Apr 2012 so only the last point is deleted when right click
% (rather than all of them)
% School of Marine Science and Engineering, University of Plymouth, UK
% daniel.buscombe@plymouth.ac.uk
% ... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | text2struct.m | .m | BenthicAnalysisTool-master/gui_functions/text2struct.m | 1,477 | utf_8 | 57576700c182c8197d341e7bb3dcdaf6 |
function [my_struct] = text2struct(filename, parse_format, varargin)
%History
%Date Who Comment
%---------- --- -----------------------------------
%2001/06/20 rme Create
%determine the number of expected fields
num_args = length(varargin);
num_scan = length(findstr('%',parse... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | magnifyOnFigure.m | .m | BenthicAnalysisTool-master/gui_functions/magnifyOnFigure.m | 99,631 | utf_8 | 9bfe3b83c41eea86630308f3dc723644 | % 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
% ... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | bat_mat2txt.m | .m | BenthicAnalysisTool-master/gui_functions/bat_mat2txt.m | 7,097 | utf_8 | fe9d452fc4b42aee710edcd886b7a5ae |
function bat_mat2txt(file_name)
% bat_mat2txt
% takes the output data file from BAT session and turns it into something
% more user-friendly
%
% Written by Daniel Buscombe, Nov 2009
% revised December 2010
% revised March 2012, Apr 2012, 0.4 and 0.5
% School of Marine Science and Engineering, University of Plymouth, U... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | popupmessage.m | .m | BenthicAnalysisTool-master/gui_functions/popupmessage.m | 2,578 | utf_8 | dc329456669b1b4d5b4432defb0fe632 |
function popupmessage(textfile,titlename,command);
% Display a text file in a popupmenu
%
% function popupmessage(filename,titlename)
%
% filename-name of the file
% titlename-name of the window
%
% Written by Samuel Cheng, Copyright 2005
%
% You are allowed to redistribute and use this code if this m-fil... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | pdftops.m | .m | BenthicAnalysisTool-master/gui_functions/export_fig/pdftops.m | 3,053 | utf_8 | 6eb261c6107aedd03ceace4ccbce285c | function varargout = pdftops(cmd)
%PDFTOPS Calls a local pdftops executable with the input command
%
% Example:
% [status result] = pdftops(cmd)
%
% Attempts to locate a pdftops executable, finally asking the user to
% specify the directory pdftops was installed into. The resulting path is
% stored for futur... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | isolate_axes.m | .m | BenthicAnalysisTool-master/gui_functions/export_fig/isolate_axes.m | 3,307 | utf_8 | 43cbadba85146816219993a4e1de54cb | %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 specified, and
% also their associated legends and colorbars. The axes specified must all
% be in the same figur... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | pdf2eps.m | .m | BenthicAnalysisTool-master/gui_functions/export_fig/pdf2eps.m | 1,524 | utf_8 | 037f9109e96ab4385d13019a29db4639 | %PDF2EPS Convert a pdf file to eps format using pdftops
%
% Examples:
% pdf2eps source dest
%
% This function converts a pdf file to eps format.
%
% This function requires that you have pdftops, from the Xpdf suite of
% functions, installed on your system. This can be downloaded from:
% http://www.foolabs.c... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | print2array.m | .m | BenthicAnalysisTool-master/gui_functions/export_fig/print2array.m | 6,062 | utf_8 | bfcf488e7a14eff6edf436b0f799b2bc | %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 bcol] = print2array(...)
%
% This function outputs a bitmap image of the given fig... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | eps2pdf.m | .m | BenthicAnalysisTool-master/gui_functions/export_fig/eps2pdf.m | 5,151 | utf_8 | b356d73460fdebe8ef6fa428d5b2c125 | %EPS2PDF Convert an eps file to pdf format using ghostscript
%
% Examples:
% eps2pdf source dest
% eps2pdf(source, dest, crop)
% eps2pdf(source, dest, crop, append)
% eps2pdf(source, dest, crop, append, gray)
% eps2pdf(source, dest, crop, append, gray, quality)
%
% This function converts an eps file... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | copyfig.m | .m | BenthicAnalysisTool-master/gui_functions/export_fig/copyfig.m | 846 | utf_8 | 289162022c603c9e11a52b6d56329188 | %COPYFIG Create a copy of a figure, without changing the figure
%
% Examples:
% fh_new = copyfig(fh_old)
%
% This function will create a copy of a figure, but not change the figure,
% as copyobj sometimes does, e.g. by changing legends.
%
% IN:
% fh_old - The handle of the figure to be copied. Default: gc... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | user_string.m | .m | BenthicAnalysisTool-master/gui_functions/export_fig/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 | dbuscombe-usgs/BenthicAnalysisTool-master | export_fig.m | .m | BenthicAnalysisTool-master/gui_functions/export_fig/export_fig.m | 27,381 | utf_8 | b0d7c42810913b42cf927ffcbcd492df | %EXPORT_FIG Exports figures suitable for publication
%
% Examples:
% im = export_fig
% [im alpha] = export_fig
% export_fig filename
% export_fig filename -format1 -format2
% export_fig ... -nocrop
% export_fig ... -transparent
% export_fig ... -native
% export_fig ... -m<val>
% export_fig... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | ghostscript.m | .m | BenthicAnalysisTool-master/gui_functions/export_fig/ghostscript.m | 4,215 | utf_8 | 621b90eb2972a74b0f4094afa317e96d | function varargout = ghostscript(cmd)
%GHOSTSCRIPT Calls a local GhostScript executable with the input command
%
% Example:
% [status result] = ghostscript(cmd)
%
% Attempts to locate a ghostscript executable, finally asking the user to
% specify the directory ghostcript was installed into. The resulting path... |
github | dbuscombe-usgs/BenthicAnalysisTool-master | print2eps.m | .m | BenthicAnalysisTool-master/gui_functions/export_fig/print2eps.m | 5,975 | utf_8 | 64511c0f76d950a19075cbef0e71c949 | %PRINT2EPS Prints figures to eps with improved line styles
%
% Examples:
% print2eps filename
% print2eps(filename, fig_handle)
% print2eps(filename, fig_handle, options)
%
% This function saves a figure as an eps file, with two improvements over
% MATLAB's print command. First, it improves the line styl... |
github | adrelino/devCam-master | dngShow.m | .m | devCam-master/MATLAB/dngShow.m | 5,096 | utf_8 | f277f395b1b1e6544cc639cd549d326f | function dngShow(filename)
% dngShow()
% dngShow(filename)
%
% Reads and displays a DNG image generated by devCam. If no filename is
% supplied, prompts user to select a DNG file (or files).
%
% User may have to adjust function with Bayer array pattern for their device.
%
% Simple example of how to work with RAW image ... |
github | adrelino/devCam-master | savejson.m | .m | devCam-master/MATLAB/jsonlab/savejson.m | 16,057 | utf_8 | 3a336e3e0e6bf5151ab7260316bc075e | function json=savejson(rootname,obj,varargin)
%
% json=savejson(rootname,obj,filename)
% or
% json=savejson(rootname,obj,opt)
% json=savejson(rootname,obj,'param1',value1,'param2',value2,...)
%
% convert a MATLAB object (cell, struct or array) into a JSON (JavaScript
% Object Notation) string
%
% author: Qianqian Fa... |
github | adrelino/devCam-master | loadjson.m | .m | devCam-master/MATLAB/jsonlab/loadjson.m | 16,661 | ibm852 | 67ff4fdd779f02d59bb2fcc0398551bb | function data = loadjson(fname,varargin)
%
% data=loadjson(fname,opt)
% or
% data=loadjson(fname,'param1',value1,'param2',value2,...)
%
% parse a JSON (JavaScript Object Notation) file or string
%
% authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
% date: 2011/09/09
% Nedialko Krouchev: http:... |
github | adrelino/devCam-master | loadubjson.m | .m | devCam-master/MATLAB/jsonlab/loadubjson.m | 14,678 | utf_8 | b60a40218451002b81594e21e7b110f7 | function data = loadubjson(fname,varargin)
%
% data=loadubjson(fname,opt)
% or
% data=loadubjson(fname,'param1',value1,'param2',value2,...)
%
% parse a JSON (JavaScript Object Notation) file or string
%
% authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
% date: 2013/08/01
%
% $Id: loadubjson.m 436 20... |
github | adrelino/devCam-master | saveubjson.m | .m | devCam-master/MATLAB/jsonlab/saveubjson.m | 15,630 | utf_8 | d157b73788cf334e48e770f42d2c6686 | function json=saveubjson(rootname,obj,varargin)
%
% json=saveubjson(rootname,obj,filename)
% or
% json=saveubjson(rootname,obj,opt)
% json=saveubjson(rootname,obj,'param1',value1,'param2',value2,...)
%
% convert a MATLAB object (cell, struct or array) into a Universal
% Binary JSON (UBJSON) binary string
%
% author... |
github | gnu-octave/table-master | readtable.m | .m | table-master/readtable.m | 1,842 | utf_8 | 84d9db3bfc2173965aa67c077180330a | function obj = readtable(file, varargin)
if nargin >= 1
[~, n, e, ~] = fileparts(file);
sep = ',';
heads = 0;
end
if nargin >=2
# check for delimiter
DelimiterIndex = find( strcmp( varargin, 'delimiter' ) == 1);
if isempty(DelimiterIndex)
sep = ',';
else
sep = varar... |
github | gnu-octave/table-master | table.m | .m | table-master/@table/table.m | 828 | utf_8 | 3ac55da884feb0848a38390f52cfcfca | function obj = table(varargin)
# input check
if (nargin == 0)
# create empy table
obj = [];
elseif (nargin > 0)
# check for given variablenames
VarNameIndex = find( strcmp( varargin, 'VariableNames' ) == 1);
if isempty(VarNameIndex)
VarName = 'Var';
Vars = varargin;
else... |
github | rallenblack/flag_gpu-master | get_grid_weights.m | .m | flag_gpu-master/utils/weight_calculator/get_grid_weights.m | 3,705 | utf_8 | 483ac1ceb6f1c4df5b7cb1a85b964bdd | function [v, w] = get_grid_weights(R, Roff, dir, stamp, bank, idx, overwrite)
weight_mat = sprintf('%s/%s%s_weights.mat', dir, stamp, bank);
disp('Computing normalized steering vectors and beamformer weights');
Nbin = size(R, 3);
Ntime = size(R, 4);
if ~exist(weight_mat, 'file') || overwrite
... |
github | rallenblack/flag_gpu-master | extract_covariances.m | .m | flag_gpu-master/utils/weight_calculator/extract_covariances.m | 2,356 | utf_8 | 9e4e89172a73b3544c142bf0e2ca02ce | function [ R, dmjd, xid ] = extract_covariances( fits_filename )
%EXTRACT_COVARIANCES Function that extracts the covariance matrices and
%reconstructs them from the FITS format into a 2D matrix format
info = fitsinfo(fits_filename);
bintbl = fitsread(fits_filename, 'binarytable', 1);
dmjd = bintbl{1... |
github | rallenblack/flag_gpu-master | beamformer_disp_gui.m | .m | flag_gpu-master/utils/real_time_displays/beamformer_disp_gui.m | 4,028 | utf_8 | 8eaaa0ff04d2720055b2d84b71b728b9 | function varargout = beamformer_disp_gui(varargin)
% BEAMFORMER_DISP_GUI MATLAB code for beamformer_disp_gui.fig
% BEAMFORMER_DISP_GUI, by itself, creates a new BEAMFORMER_DISP_GUI or raises the existing
% singleton*.
%
% H = BEAMFORMER_DISP_GUI returns the handle to a new BEAMFORMER_DISP_GUI or the hand... |
github | rallenblack/flag_gpu-master | total_power_gui.m | .m | flag_gpu-master/utils/real_time_displays/total_power_gui.m | 11,458 | utf_8 | 7c8c5fe29d00dc384c1fdc86e74c6d64 | function varargout = total_power_gui(varargin)
% TOTAL_POWER_GUI MATLAB code for total_power_gui.fig
% TOTAL_POWER_GUI, by itself, creates a new TOTAL_POWER_GUI or raises the existing
% singleton*.
%
% H = TOTAL_POWER_GUI returns the handle to a new TOTAL_POWER_GUI or the handle to
% the existing si... |
github | stephenbeckr/L-BFGS-B-C-master | lbfgsb.m | .m | L-BFGS-B-C-master/Matlab/lbfgsb.m | 10,361 | utf_8 | 81560196fb8e41586459eec0dd9cf328 | function [x,f,info] = lbfgsb( fcn, l, u, opts )
% x = lbfgsb( fcn, l, u )
% uses the lbfgsb v.3.0 library (fortran files must be installed;
% see compile_mex.m ) which is the L-BFGS-B algorithm.
% The algorithm is similar to the L-BFGS quasi-Newton algorithm,
% but also handles bound constraints via an acti... |
github | MS-BASIS/Pattern-Recognition-Toolbox-master | uiDimensionReduction.m | .m | Pattern-Recognition-Toolbox-master/uiDimensionReduction.m | 5,066 | utf_8 | 69444da8f150ff05e0b2f5854c04cbd9 | function uiDimensionReduction(ppm,Sp,X,groups,varargin)
%% Unsupervised and Supervised dimension reduction toolbox
%% for interactive explorative analysis and predictive modelling
%% of metabolic data sets
% Input: Sp - peak intensity data matrix [observation x variables]
% X - log-transformed peak ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.