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 | jgte/orb-master | datadump.m | .m | orb-master/packages/+yaml/datadump.m | 1,077 | utf_8 | 2316a0f90fbe103922fd1496fb78098a | function datadump(data)
recurse(data, 0, []);
end
function result = recurse(data, level, addit)
indent = repmat(' | ',1,level);
if iscell(data) && ~yaml.ismymatrix(data)
result = iter_cell(data, level, addit);
elseif isstruct(data)
result = iter_struct(data, level, addit);
... |
github | jgte/orb-master | ReadYaml.m | .m | orb-master/packages/+yaml/ReadYaml.m | 2,750 | utf_8 | a4783c77e7c6b0fa0de34c0187d10687 | % Actually reads YAML file and transforms it using several mechanisms:
%
% - Transforms mappings and lists into Matlab structs and cell arrays,
% for timestamps uses DateTime class, performs all imports (when it
% finds a struct field named 'import' it opens file(s) named in the
% field content and s... |
github | jgte/orb-master | doinheritance.m | .m | orb-master/packages/+yaml/doinheritance.m | 3,175 | utf_8 | 63e80073c0d0944c82c0548b0843b7b7 | % Searches through some hierarchy and performs inheritance.
% Whenever finds struct field named 'parent' it tries to find all points,
% defined by its content and uses them as the struct ancestors. Example:
%
% Given:
%
% s.a.a = 1
% s.a.b = 2
% s.a.parent: 'b'
%
% s.b.a = 3
% s.b.c = 4
%
% the ... |
github | jgte/orb-master | WriteYaml.m | .m | orb-master/packages/+yaml/WriteYaml.m | 6,903 | utf_8 | dfd184dd483245cdbdf03cf47e217a11 | % Recursively walks through a Matlab hierarchy and converts it to the hierarchy of java.util.ArrayListS and java.util.MapS.
% Then calls Snakeyaml to write it to a file.
function result = WriteYaml(filename, data, flowstyle)
if ~exist('flowstyle','var')
flowstyle = 0;
end;
if ~ismember(flowst... |
github | jgte/orb-master | selftest_yamlmatlab.m | .m | orb-master/packages/+yaml/Tests/selftest_yamlmatlab.m | 2,954 | utf_8 | 4b0ea27db95878c651e0c46855f39e18 | function selftest_yamlmatlab(varargin)
% This function tests consistency of YAMLMatlab, by default, the results
% are stored in selftest_report.html in current work folder.
% Example
% >> selftest_yamlmatlab()
% >> selftest_yamlmatlab(outFileName)
%
% %=================================================================... |
github | jgte/orb-master | test_ReadYaml.m | .m | orb-master/packages/+yaml/Tests/test_ReadYaml.m | 9,009 | utf_8 | d605d5659ee16a0e1a9b8adafa07d6f1 | function stat = test_ReadYaml()
% this function tests reading in the yaml file
stat.ok = 1;
stat.desc = '';
try
%stat.test_yaml.ReadYaml_SimpleStructure = test_yaml.ReadYaml_SimpleStructure();
%stat.test_yaml.ReadYaml_yaml.DateTime = test_yaml.ReadYaml_yaml.DateTime();
fprintf('Testing read ');
st... |
github | jgte/orb-master | test_WriteYaml.m | .m | orb-master/packages/+yaml/Tests/test_WriteYaml.m | 1,756 | utf_8 | f25bb460013ee81bfe5325d2fd821a4a | function stat = test_WriteYaml()
stat.ok = 1;
stat.desc = '';
try
fprintf('Testing write ');
stat.test_WY_Matrices = test_WY_Universal(PTH_PRIMITIVES(), 'matrices');
fprintf('.');
stat.test_WY_FloatingPoints = test_WY_Universal(PTH_PRIMITIVES(), 'floating_points');
fprintf('.');
stat.test_WY_In... |
github | KepecsLab/Bpod-master | Bpod.m | .m | Bpod-master/Bpod.m | 3,884 | utf_8 | 762b26a35e8305809697d26411cae656 | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | RunStateMatrix.m | .m | Bpod-master/Functions/RunStateMatrix.m | 15,124 | utf_8 | 7b56be171e83de7fe6edf83b76f8743a | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | AddTrialEvents.m | .m | Bpod-master/Functions/AddTrialEvents.m | 3,522 | utf_8 | 33b718a20714077159a677dc79a425fe | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | SendStateMatrix.m | .m | Bpod-master/Functions/SendStateMatrix.m | 5,046 | utf_8 | 72bbde6e624d8048624ea35e0d471c15 | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | SaveBpodSessionData.m | .m | Bpod-master/Functions/SaveBpodSessionData.m | 917 | utf_8 | f1081edf046dfc9811516bdecd3abd06 | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | RunProtocol.m | .m | Bpod-master/Functions/Launch manager/RunProtocol.m | 3,887 | utf_8 | 3ac426da447eda157ae58a06ce7c4daa | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | LaunchManager.m | .m | Bpod-master/Functions/Launch manager/LaunchManager.m | 24,784 | utf_8 | aeedd2a30df2a1f6ae27a62fa3c770e1 | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | SaveBpodProtocolSettings.m | .m | Bpod-master/Functions/Launch manager/SaveBpodProtocolSettings.m | 1,048 | utf_8 | 0ef97c97dfcbeb7806836fb10f901943 | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | SetState2Default.m | .m | Bpod-master/Functions/State Matrix Assembler/SetState2Default.m | 2,166 | utf_8 | 0d33196de5fc1b9bcf7348f29a718567 | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | EditState.m | .m | Bpod-master/Functions/State Matrix Assembler/EditState.m | 5,151 | utf_8 | 15180f401b7a506619384da9ea9fe558 | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | SetGlobalTimer.m | .m | Bpod-master/Functions/State Matrix Assembler/SetGlobalTimer.m | 1,427 | utf_8 | aab760665eb189ad2f3d0e02aeacd54e | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | NewStateMatrix.m | .m | Bpod-master/Functions/State Matrix Assembler/NewStateMatrix.m | 873 | utf_8 | 463d370d85df44d82557e6b8c1f1a9de | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | GenerateBlankStateMatrix.m | .m | Bpod-master/Functions/State Matrix Assembler/GenerateBlankStateMatrix.m | 1,876 | utf_8 | c86b1abb2901ba8323180e183d6e8a9c | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | AddState.m | .m | Bpod-master/Functions/State Matrix Assembler/AddState.m | 7,058 | utf_8 | 9ddb799a53fddf6649a5530e5573099a | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | SetGlobalCounter.m | .m | Bpod-master/Functions/State Matrix Assembler/SetGlobalCounter.m | 1,840 | utf_8 | 3a892c0fc059817362f98b649da5b682 | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | BpodLiquidCalibration.m | .m | Bpod-master/Functions/LiquidCalibrator/BpodLiquidCalibration.m | 47,327 | utf_8 | 6c676cd6113dfd50595a0755783899e4 | function varargout = BpodLiquidCalibration(op, varargin)
global BpodSystem
AssertBpodSystemObject(BpodSystem);
ValveListboxString = {'Valve1', 'Valve2', 'Valve3', 'Valve4', 'Valve5', 'Valve6', 'Valve7', 'Valve8'};
switch lower(op)
case 'calibrate' % Launch the GUI
BpodSystem.GUIHandles.LiquidCalibrator = st... |
github | KepecsLab/Bpod-master | AddPendingMeasurement.m | .m | Bpod-master/Functions/LiquidCalibrator/Old/AddPendingMeasurement.m | 555 | utf_8 | c1b74c778c7889002421e24521d3a55d | % Add pending measurement from prompt window to calibraiton manager main
% window
function AddPendingMeasurement
global Measurement2add
handles=guidata(LiquidCalibrationManager);
ValueEntered = get(handles.AmountEntry, 'String');
ValidEntry = 1;
CandidateValue = str2double(ValueEntered);
if isnan(CandidateValue)
Va... |
github | KepecsLab/Bpod-master | GetValveTimes.m | .m | Bpod-master/Functions/LiquidCalibrator/Old/GetValveTimes.m | 2,018 | utf_8 | 7965540fb21a2e757664f1de07f45b8c | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | LiquidCalibrationManager.m | .m | Bpod-master/Functions/LiquidCalibrator/Old/LiquidCalibrationManager.m | 30,315 | utf_8 | cb60ae98ea3f026b42c0f178389c180b | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | TeensySoundServer.m | .m | Bpod-master/Functions/Plugins/TeensySoundServer/TeensySoundServer.m | 2,997 | utf_8 | eb8ca702bd1c677f468a98ec98aebf6b | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | BpodParameterGUIOld.m | .m | Bpod-master/Functions/Plugins/ParameterGUI/BpodParameterGUIOld.m | 9,266 | utf_8 | 4f983dee319a1b21e7486ec76dd90ec8 | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | BpodParameterGUI.m | .m | Bpod-master/Functions/Plugins/ParameterGUI/BpodParameterGUI.m | 18,977 | utf_8 | e4fbc831168d4a52c33835024d0fc9ef | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | BpodNotebook.m | .m | Bpod-master/Functions/Plugins/Notebook/BpodNotebook.m | 11,577 | utf_8 | cba932f5d4f637ad3d3d0ddeb2d5fe1c | function SessionData = BpodNotebook(Op, varargin)
global BpodSystem
Op = lower(Op);
switch Op
case 'init'
% Initialize BpodSystem.GUIHandles.Notebook structure
BpodSystem.GUIHandles.Notebook = struct();
BpodSystem.GUIData.Notebook = struct();
BpodSystem.GUIData.Notebook.Notes = cell(... |
github | KepecsLab/Bpod-master | BpodSMS.m | .m | Bpod-master/Functions/Plugins/BpodSMS/BpodSMS.m | 8,313 | utf_8 | d656b1e2d128affcf4b247e951e2a876 | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | Pipeline.m | .m | Bpod-master/Functions/Plugins/Pipeline/Pipeline.m | 6,715 | utf_8 | e53f2b75f305ca3623cb2275e90594fb | function varargout = Pipeline(op, varargin)
global BpodSystem
global PipelineSystem
switch op
case 'init'
% Expects the following argument/value pairs:
% 'SessionEndCriteriaType', 'type' ('type = 'time', 'nTrials')
% 'SessionEndCriteria', value (value units = seconds if SessionEndCriteriaTyp... |
github | KepecsLab/Bpod-master | PipelineDoor.m | .m | Bpod-master/Functions/Plugins/Pipeline/PipelineDoor.m | 1,723 | utf_8 | 8b0617628a2fbc90c6902fc870d4f20d | function varargout = PipelineDoor(op, varargin)
global PipelineSystem
switch op
case 'init'
Port = varargin{1};
if ispc
PipelineSystem.SerialPort = serial(Port, 'BaudRate', 9600, 'Timeout', 1, 'DataTerminalReady', 'on');
else
PipelineSystem.SerialPort = serial(Port, 'Ba... |
github | KepecsLab/Bpod-master | ConfigureBonsaiSocket.m | .m | Bpod-master/Functions/Plugins/Bonsai/ConfigureBonsaiSocket.m | 3,454 | utf_8 | f727d3446a748fdbc6dc937b10cc76cb | function ConfigureBonsaiSocket
global BpodSystem
BpodSystem.GUIHandles.ConfigureBonsaiFig = figure('Position', [350 380 300 300],'name','Bonsai socket configuration','numbertitle','off', 'MenuBar', 'none', 'Resize', 'off');
ha = axes('units','normalized', 'position',[0 0 1 1]);
uistack(ha,'bottom');
BG = imread('Bonsai... |
github | KepecsLab/Bpod-master | OlfactometerConfig.m | .m | Bpod-master/Functions/Plugins/RechiaOlfactometer/OlfactometerConfig.m | 24,116 | utf_8 | 6dfb80fc9cf8150c73fe9523f0bdd6e6 | function varargout = OlfactometerConfig(varargin)
% OLFACTOMETERCONFIG M-file for OlfactometerConfig.fig
% OLFACTOMETERCONFIG, by itself, creates a new OLFACTOMETERCONFIG or raises the existing
% singleton*.
%
% H = OLFACTOMETERCONFIG returns the handle to a new OLFACTOMETERCONFIG or the handle to
% ... |
github | KepecsLab/Bpod-master | PsychToolboxSoundServer4Ch.m | .m | Bpod-master/Functions/Plugins/PsychToolboxSoundServer/PsychToolboxSoundServer4Ch.m | 8,798 | utf_8 | 9d6f05820732809dcd5a109df7ec1077 | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2016 Joshua I. Sanders, Sanworks LLC
----------------------------------------------------------------------------
This program is free software: you can redistribute it and/or modify
it... |
github | KepecsLab/Bpod-master | TotalRewardDisplay.m | .m | Bpod-master/Functions/Plugins/TotalReward/TotalRewardDisplay.m | 2,629 | utf_8 | 896fe5ed47559bd83235ee6ca7126712 | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | OutcomePlot.m | .m | Bpod-master/Functions/Plugins/Deprecated plugins/OutcomePlot.m | 7,082 | utf_8 | fcebb2e259774d960bf3b7c0ef6bdf92 | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | SerialEthernet.m | .m | Bpod-master/Functions/Plugins/SerialEthernet/SerialEthernet.m | 3,155 | utf_8 | 2378d0838022fbe4451725416d922494 | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | SideOutcomePlot.m | .m | Bpod-master/Functions/Plugins/Plots/SideOutcomePlot.m | 7,076 | utf_8 | a3f79950cb8514241365a69519b1a4d3 | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2015 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | TrialTypeOutcomePlot.m | .m | Bpod-master/Functions/Plugins/Plots/TrialTypeOutcomePlot.m | 7,693 | utf_8 | c1273410ffc589d9166ce49ac8fc0c50 | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2015 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | CalibratedPureTone.m | .m | Bpod-master/Functions/SoundCalibrator/CalibratedPureTone.m | 8,696 | utf_8 | 1c81460b5b6924ab97d3e3e433c0f158 | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | CalibrateSoundFilesManager.m | .m | Bpod-master/Functions/SoundCalibrator/CalibrateSoundFilesManager.m | 46,558 | utf_8 | 00f450b804b431b7c3ef68976e07068d | function varargout = CalibrateSoundFilesManager(varargin)
% CALIBRATESOUNDFILESMANAGER MATLAB code for CalibrateSoundFilesManager.fig
% CALIBRATESOUNDFILESMANAGER, by itself, creates a new CALIBRATESOUNDFILESMANAGER or raises the existing
% singleton*.
%
% H = CALIBRATESOUNDFILESMANAGER returns the hand... |
github | KepecsLab/Bpod-master | SoundCalibrationManager.m | .m | Bpod-master/Functions/SoundCalibrator/SoundCalibrationManager.m | 53,303 | utf_8 | 802d1ac0e828c9135d7d7fe4154bc5af | function varargout = SoundCalibrationManager(varargin)
% SOUNDCALIBRATIONMANAGER MATLAB code for SoundCalibrationManager.fig
% SOUNDCALIBRATIONMANAGER, by itself, creates a new SOUNDCALIBRATIONMANAGER or raises the existing
% singleton*.
%
% H = SOUNDCALIBRATIONMANAGER returns the handle to a new SOUNDC... |
github | KepecsLab/Bpod-master | TestSoundManager.m | .m | Bpod-master/Functions/SoundCalibrator/TestSoundManager.m | 18,339 | utf_8 | d5cd70d4ac95bbbe6709c17ef170677a | function varargout = TestSoundManager(varargin)
% TESTSOUNDMANAGER MATLAB code for TestSoundManager.fig
% TESTSOUNDMANAGER, by itself, creates a new TESTSOUNDMANAGER or raises the existing
% singleton*.
%
% H = TESTSOUNDMANAGER returns the handle to a new TESTSOUNDMANAGER or the handle to
% the exis... |
github | KepecsLab/Bpod-master | find_amplitude.m | .m | Bpod-master/Functions/SoundCalibrator/deprecated/find_amplitude.m | 2,191 | utf_8 | 7228c6b7dd55f3eac898c1de8ebc24b9 | % This function finds the right attenuation for signal to get
% a desired sound pressure level.
%
% Santiago Jaramillo - 2007.11.15
% Modified by Peter Znamenskiy - 2009.02.18
% Modified by F. Carnevale - 2015.02.19
function [Amplitude] = find_amplitude(SoundParam,TargetSPL,BandLimits, handles)
global BpodSystem
... |
github | KepecsLab/Bpod-master | band_power.m | .m | Bpod-master/Functions/SoundCalibrator/deprecated/band_power.m | 709 | utf_8 | c2f20121aedbc096797b2916275d18db | % Estimate the total power within a frequency band given
% the Power Spectrum Density estimate (in dB/Hz).
%
% [BandPower,BandPower_dBSPL] = band_power(PSDvec,PSDfreq,BandLimits)
%
% Santiago Jaramillo - 2007.11.13
function [BandPower,BandPower_dBSPL] = band_power(PSDvec,PSDfreq,BandLimits)
[tmpvar,IndexLowFreq]=min(... |
github | KepecsLab/Bpod-master | response_one_sound.m | .m | Bpod-master/Functions/SoundCalibrator/deprecated/response_one_sound.m | 3,232 | utf_8 | 4efa4f27871d668bec854416c06f7463 | % Get the sound intensity produced by a pure tone of a particular
% amplitude and frequency going into the speaker.
%
% Santiago Jaramillo - 2007.11.14
% Uri - 2013.05.27
% Fede - 2015.09.10
% Michi - 2019.10.31 Adjusting to session based data acquisition
function [BandPower, signal_toplot, Parameters, ThisPSD] = r... |
github | KepecsLab/Bpod-master | ManualOverride.m | .m | Bpod-master/Functions/Internal Functions/ManualOverride.m | 5,557 | utf_8 | 8cfb9130f77219402c29e5402f9e7d90 | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | BpodSettingsMenu.m | .m | Bpod-master/Functions/Internal Functions/BpodSettingsMenu.m | 2,899 | utf_8 | 121f5cf49d1363943d56cde9c31cbdb0 | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | progressbar.m | .m | Bpod-master/Functions/Internal Functions/progressbar.m | 11,668 | utf_8 | 4fefd3c88931ce08d92d3bbe85ef8b23 | function progressbar(varargin)
% Description:
% progressbar() provides an indication of the progress of some task using
% graphics and text. Calling progressbar repeatedly will update the figure and
% automatically estimate the amount of time remaining.
% This implementation of progressbar is intended to be extreme... |
github | KepecsLab/Bpod-master | HandleSoftCode.m | .m | Bpod-master/Functions/Internal Functions/HandleSoftCode.m | 920 | utf_8 | 4bc791439d5847b37397c96323873707 | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | UpdateBpodCommanderGUI.m | .m | Bpod-master/Functions/Internal Functions/UpdateBpodCommanderGUI.m | 4,924 | utf_8 | f42c3026ef6e0849080fe65d033547dd | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | HandlePauseCondition.m | .m | Bpod-master/Functions/Internal Functions/HandlePauseCondition.m | 1,823 | utf_8 | cb44eb339e861e409687bf69613642c2 | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | BpodWiki.m | .m | Bpod-master/Functions/Internal Functions/BpodWiki.m | 990 | utf_8 | 29201b37987549d9200a90afd8b4a991 | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | RunBpodEmulator.m | .m | Bpod-master/Functions/Internal Functions/RunBpodEmulator.m | 5,460 | utf_8 | 726f450003159b3b11dc61fe1349ebdb | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | BpodPortConfig.m | .m | Bpod-master/Functions/Internal Functions/BpodPortConfig.m | 4,362 | utf_8 | 7ae875d6b1ff77c27b800ee510dd9a94 | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | VirtualManualOverride.m | .m | Bpod-master/Functions/Internal Functions/VirtualManualOverride.m | 1,987 | utf_8 | d8593d6d7d3a601413dfb00803ba91be | %{
----------------------------------------------------------------------------
This file is part of the Bpod Project
Copyright (C) 2014 Joshua I. Sanders, Cold Spring Harbor Laboratory, NY, USA
----------------------------------------------------------------------------
This program is free software: you can redist... |
github | KepecsLab/Bpod-master | StimulusPlot.m | .m | Bpod-master/Protocols/ToneClouds4BPod/StimulusPlot.m | 1,776 | utf_8 | 89501e747510e27fa9c91048a4b9e6cc |
function StimulusPlot(AxesHandle, Action, varargin)
%%
% Plug in to Plot Stimulus
% AxesHandle = handle of axes to plot on
% Action = specific action for plot, "init" - initialize OR "update" - update plot
%Example usage:
% StimulusPlot(AxesHandle,'init',Stimulus)
% Fede
%% Code Starts Here
global BpodSystem
swi... |
github | KepecsLab/Bpod-master | ToneClouds4BPod.m | .m | Bpod-master/Protocols/ToneClouds4BPod/ToneClouds4BPod.m | 20,826 | utf_8 | ec058232ffe5eb7179cb2d9cc8838681 | function ToneClouds4BPod
% This protocol implements ToneClouds (developed by P. Znamenskiy) on Bpod
% Based on PsychoToolboxSound (written by J.Sanders)
% Written by F.Carnevale, 2/2015.
% Modified by J. Sanders 3/2016.
global BpodSystem
%% Define parameters
S = BpodSystem.ProtocolSettings; % Load settings chosen i... |
github | KepecsLab/Bpod-master | PsychToolboxSound.m | .m | Bpod-master/Protocols/PsychToolboxSound/PsychToolboxSound.m | 9,971 | utf_8 | a63e66646d64f085c6d0a88130ecf75b | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | Light2AFC.m | .m | Bpod-master/Protocols/Light2AFC/Light2AFC.m | 7,169 | utf_8 | 54abec6f98d0757298814041c5c9cfb5 | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | KepecsLab/Bpod-master | Operant.m | .m | Bpod-master/Protocols/Operant/Operant.m | 7,359 | utf_8 | 05e15519d6c656fedc6908a50c162115 | %{
----------------------------------------------------------------------------
This file is part of the Sanworks Bpod repository
Copyright (C) 2016 Sanworks LLC, Sound Beach, New York, USA
----------------------------------------------------------------------------
This program is free software: you can redistribut... |
github | fjsaitua/RY-dFBA-master | modelModifications.m | .m | RY-dFBA-master/main/data/modelModifications.m | 1,783 | utf_8 | 6bc889a3aaf7759f6d4fc0b7cb30fa65 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% model = modelModifications(model,isAerobic)
% Modifies model for anaerobic models and adds maintenance reaction.
%
% INPUTS:
% model COBRA model used in the simulation
% isAerobic =1 if aerobic experiment and =0 if anaerobic experi... |
github | fjsaitua/RY-dFBA-master | permited_it.m | .m | RY-dFBA-master/main P_pastoris dFBA/Batch model/permited_it.m | 909 | utf_8 | 2e5fb4ba8bebe79d54426d5b589f2985 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% answer = permited_it(it,last_results)
% Returns a boolean if the proposed iteration is allowed or not.
% Customizable for each dynamic model.
%
% Francisco J. Saitua
% Last Update: 2016-12-22
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
github | fjsaitua/RY-dFBA-master | kineticConstraints.m | .m | RY-dFBA-master/main P_pastoris dFBA/Batch model/kineticConstraints.m | 2,089 | utf_8 | c858c6645c9b225dad53e356180ffb91 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% model = kineticConstraints(model,x,excRxn,p)
% Calculate relevant kinetic constraints, as LB or UB for the SBML model
%
% INPUTS:
% model COBRA model used in the simulation
% x Concentrations of each variable in the last iteration ... |
github | ZhangLeUestc/CRVFLEn-master | CRVFLEn.m | .m | CRVFLEn-master/CRVFLEn.m | 7,037 | utf_8 | 8a29022206fce2b83db035652727bcff | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "Visual Tracking with Convolutional Random Vector Functional Link Neural Network "
% Le Zhang, P.N. Suganthan , IEEE Transaction on Cybernetics.
% Note the implementation is based on ... |
github | ZhangLeUestc/CRVFLEn-master | makeConfig.m | .m | CRVFLEn-master/makeConfig.m | 3,840 | utf_8 | fdd53847b43b16f8c742b2c271b8aca0 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "MEEM: Robust Tracking via Multiple Experts using Entropy Minimization",
% Jianming Zhang, Shugao Ma, Stan Sclaroff, ECCV, 2014
%
% Copyright (C) 2014 Jianming Zhang
%
% This program is f... |
github | ZhangLeUestc/CRVFLEn-master | getLogLikelihoodEntropy.m | .m | CRVFLEn-master/expert_ensemble/getLogLikelihoodEntropy.m | 1,562 | utf_8 | 2bb71e5a0ed6467e61868f6c4cbdb17a | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "MEEM: Robust Tracking via Multiple Experts using Entropy Minimization",
% Jianming Zhang, Shugao Ma, Stan Sclaroff, ECCV, 2014
%
% Copyright (C) 2014 Jianming Zhang
%
% This progr... |
github | ZhangLeUestc/CRVFLEn-master | expertsDo.m | .m | CRVFLEn-master/expert_ensemble/expertsDo.m | 8,966 | utf_8 | 7416362f5c7d20bf495904b367ab5e26 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "MEEM: Robust Tracking via Multiple Experts using Entropy Minimization",
% Jianming Zhang, Shugao Ma, Stan Sclaroff, ECCV, 2014
%
% Copyright (C) 2014 Jianming Zhang
%
% This progr... |
github | ZhangLeUestc/CRVFLEn-master | updateTrackerExperts.m | .m | CRVFLEn-master/expert_ensemble/updateTrackerExperts.m | 1,486 | utf_8 | 64152b85c212c26a5122f8a6f9989498 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "MEEM: Robust Tracking via Multiple Experts using Entropy Minimization",
% Jianming Zhang, Shugao Ma, Stan Sclaroff, ECCV, 2014
%
% Copyright (C) 2014 Jianming Zhang
%
% This progr... |
github | ZhangLeUestc/CRVFLEn-master | updateSample.m | .m | CRVFLEn-master/base_tracker/updateSample.m | 4,209 | utf_8 | 08c116b6c8bada9aa58c8c0d277ab8b2 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "MEEM: Robust Tracking via Multiple Experts using Entropy Minimization",
% Jianming Zhang, Shugao Ma, Stan Sclaroff, ECCV, 2014
%
% Copyright (C) 2014 Jianming Zhang
%
% This progr... |
github | ZhangLeUestc/CRVFLEn-master | resample.m | .m | CRVFLEn-master/base_tracker/resample.m | 3,308 | utf_8 | e83fa66937e43258182d5dcd4aa1d105 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "MEEM: Robust Tracking via Multiple Experts using Entropy Minimization",
% Jianming Zhang, Shugao Ma, Stan Sclaroff, ECCV, 2014
%
% Copyright (C) 2014 Jianming Zhang
%
% This progr... |
github | ZhangLeUestc/CRVFLEn-master | updateCNNTracker.m | .m | CRVFLEn-master/base_tracker/updateCNNTracker.m | 5,074 | utf_8 | 7955dd4db4a920171bc568d8a0b49703 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "MEEM: Robust Tracking via Multiple Experts using Entropy Minimization",
% Jianming Zhang, Shugao Ma, Stan Sclaroff, ECCV, 2014
%
% Copyright (C) 2014 Jianming Zhang
%
% This progr... |
github | ZhangLeUestc/CRVFLEn-master | createSampler.m | .m | CRVFLEn-master/base_tracker/createSampler.m | 1,212 | utf_8 | 053cc390d95fd722ed3742299c6a0e72 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "MEEM: Robust Tracking via Multiple Experts using Entropy Minimization",
% Jianming Zhang, Shugao Ma, Stan Sclaroff, ECCV, 2014
%
% Copyright (C) 2014 Jianming Zhang
%
% This progr... |
github | ZhangLeUestc/CRVFLEn-master | initSampler.m | .m | CRVFLEn-master/base_tracker/initSampler.m | 1,819 | utf_8 | 1fc4edb5e528640e8b8423103e9f0e0a | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "MEEM: Robust Tracking via Multiple Experts using Entropy Minimization",
% Jianming Zhang, Shugao Ma, Stan Sclaroff, ECCV, 2014
%
% Copyright (C) 2014 Jianming Zhang
%
% This progr... |
github | ZhangLeUestc/CRVFLEn-master | initCNNTracker.m | .m | CRVFLEn-master/base_tracker/initCNNTracker.m | 4,510 | utf_8 | 93ca8f286c83db90854b02723a2e4ade | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "MEEM: Robust Tracking via Multiple Experts using Entropy Minimization",
% Jianming Zhang, Shugao Ma, Stan Sclaroff, ECCV, 2014
%
% Copyright (C) 2014 Jianming Zhang
%
% This progr... |
github | ZhangLeUestc/CRVFLEn-master | getFrame2Compute.m | .m | CRVFLEn-master/utils/getFrame2Compute.m | 1,411 | utf_8 | 2d40b3f2d6bb4e0b17966721bc6243e2 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "MEEM: Robust Tracking via Multiple Experts using Entropy Minimization",
% Jianming Zhang, Shugao Ma, Stan Sclaroff, ECCV, 2014
%
% Copyright (C) 2014 Jianming Zhang
%
% This progr... |
github | ZhangLeUestc/CRVFLEn-master | rsz_rt.m | .m | CRVFLEn-master/utils/rsz_rt.m | 2,051 | utf_8 | 2869266cd45f93dd1a0acfbcaa7934c9 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "MEEM: Robust Tracking via Multiple Experts using Entropy Minimization",
% Jianming Zhang, Shugao Ma, Stan Sclaroff, ECCV, 2014
%
% Copyright (C) 2014 Jianming Zhang
%
% This progr... |
github | ZhangLeUestc/CRVFLEn-master | getIOU.m | .m | CRVFLEn-master/utils/getIOU.m | 1,426 | utf_8 | 0a1d0e73839b4ad82d440a1af127ed1b | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "MEEM: Robust Tracking via Multiple Experts using Entropy Minimization",
% Jianming Zhang, Shugao Ma, Stan Sclaroff, ECCV, 2014
%
% Copyright (C) 2014 Jianming Zhang
%
% This progr... |
github | ZhangLeUestc/CRVFLEn-master | getFeatureRep.m | .m | CRVFLEn-master/utils/getFeatureRep.m | 2,326 | utf_8 | 5c0a608d2fdf479ce814af16c5bb3705 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Implemetation of the tracker described in paper
% "MEEM: Robust Tracking via Multiple Experts using Entropy Minimization",
% Jianming Zhang, Shugao Ma, Stan Sclaroff, ECCV, 2014
%
% Copyright (C) 2014 Jianming Zhang
%
% This progr... |
github | ZhangLeUestc/CRVFLEn-master | compile.m | .m | CRVFLEn-master/mex/compile.m | 2,903 | utf_8 | b96435bc7a1f8640316c31ca063ab35c | % make the mex file for Windows system
% Jianming Zhang
% 9/14/2013
function compile()
% set the values
opts.opencv_include_path = 'C:\Users\zhangle\Downloads\opencv\build\include';% 'C:\opencv245\opencv\include'; % OpenCV include path
opts.opencv_lib_path = 'C:\Users\zhangle\Downloads\opencv\build\x64\... |
github | sinakhani/Neverworld-master | SGSflux_cheap.m | .m | Neverworld-master/MATLAB_CODES/SGSflux_cheap.m | 2,970 | utf_8 | cf35931e4e3b02030e1eba15c8a4a5a5 | % Function to compute SGS volume transport from interface height
% with periodic boundary conditions
%
% usage: [ugh_SGS,vgh_SGS]=SGSflux(eta,f,gp,dx,dy,kfilt,eps,crops)
%
% input eta: interface height [nx x ny x nz+1]
% f: Coriolis parameter, g' [nx x ny]
% gp: reduced gravity, g' [nz]
% dx: g... |
github | sinakhani/Neverworld-master | centmean.m | .m | Neverworld-master/MATLAB_CODES/centmean.m | 1,362 | utf_8 | d84f2a98255be01b85e6a43763e22bc5 | % Square box average that remains centered at all times. When missing values
% occur, the local box size is reduced until all values are well defined.
% Produces NaNs only where NaNs exixted in the original data
% Boundary conditions are treated as doubly-periodic. If you want to avoid periodic BC's,
% just add row... |
github | sinakhani/Neverworld-master | SGSeddvis_cheap.m | .m | Neverworld-master/MATLAB_CODES/SGSeddvis_cheap.m | 2,663 | utf_8 | e6b6d1067fd222e84f641ced21f202a2 | % Function to compute SGS volume transport from interface height
% with periodic boundary conditions
%
% usage: [ugh_SGS,vgh_SGS]=SGSflux(eta,f,gp,dx,dy,kfilt,eps,crops)
%
% input eta: interface height [nx x ny x nz+1]
% f: Coriolis parameter, g' [nx x ny]
% gp: reduced gravity, g' [nz]
% dx: g... |
github | sinakhani/Neverworld-master | centmean_cheap_NV.m | .m | Neverworld-master/MATLAB_CODES/centmean_cheap_NV.m | 1,489 | utf_8 | 8981e038d9f09a62afd73ccbcd609032 | % Square box average that remains centered at all times. When missing values
% occur, the local box size is reduced until all values are well defined.
% Produces NaNs only where NaNs exixted in the original data
% Boundary conditions are treated as doubly-periodic. If you want to avoid periodic BC's,
% just add row... |
github | sinakhani/Neverworld-master | centmean_cheap.m | .m | Neverworld-master/MATLAB_CODES/centmean_cheap.m | 1,498 | utf_8 | 457748fa39ff31ac85c4ccd1a44d32ae | % Square box average that remains centered at all times. When missing values
% occur, the local box size is reduced until all values are well defined.
% Produces NaNs only where NaNs exixted in the original data
% Boundary conditions are treated as doubly-periodic. If you want to avoid periodic BC's,
% just add row... |
github | sinakhani/Neverworld-master | SGSflux_filtfirst_cheap.m | .m | Neverworld-master/MATLAB_CODES/SGSflux_filtfirst_cheap.m | 2,687 | utf_8 | 53c8e25533f58816a2d1ba34aa14708c | % Function to compute SGS volume transport from interface height
% with periodic boundary conditions
%
% usage: [ugh_SGS,vgh_SGS]=SGSflux(eta,f,gp,dx,dy,kfilt,eps,crops)
%
% input eta: interface height [nx x ny x nz+1]
% f: Coriolis parameter, g' [nx x ny]
% gp: reduced gravity, g' [nz]
% dx: g... |
github | sinakhani/Neverworld-master | SGSflux_cheap_NV.m | .m | Neverworld-master/MATLAB_CODES/SGSflux_cheap_NV.m | 2,981 | utf_8 | 10a8ba2c652fa6a882f5282c086b5634 | % Function to compute SGS volume transport from interface height
% with periodic boundary conditions
%
% usage: [ugh_SGS,vgh_SGS]=SGSflux(eta,f,gp,dx,dy,kfilt,eps,crops)
%
% input eta: interface height [nx x ny x nz+1]
% f: Coriolis parameter, g' [nx x ny]
% gp: reduced gravity, g' [nz]
% dx: g... |
github | sinakhani/Neverworld-master | grad.m | .m | Neverworld-master/MATLAB_CODES/grad.m | 1,354 | utf_8 | ced73715e7beac03f0dbae122548fe5b | % Computes the horizontal gradient of a scalar 2D or 3D field
% with periodic boundary conditions, using centered differences
%
% usage: [dadx,dady]=grad(a,dx,dy)
%
% input a: data matrix [nx x ny x nz]
% dx: grid spacing in x [nx x ny] (technically this should be 1/2(x(i+1)-x(i-1)))
% dy: grid s... |
github | sinakhani/Neverworld-master | spc_geovel.m | .m | Neverworld-master/MATLAB_CODES/spc_geovel.m | 1,998 | utf_8 | 8040b0bd5eddf478d5436ebe18a0c039 | % Function to compute masked geostrophic velocity for spectrum
% with periodic boundary conditions
%
% input eta: interface height [nx x ny x nz+1]
% f: Coriolis parameter, g' [nx x ny]
% gp: reduced gravity, g' [nz]
% dx: grid spacing in x [nx x ny] (technically this should be 1/2(x(i+1)-x(i-1... |
github | sinakhani/Neverworld-master | geovel.m | .m | Neverworld-master/MATLAB_CODES/geovel.m | 820 | utf_8 | 750c6d623fffe4f82a92f333427e8bcf | % Computes the horizontal geostropic velocities from interface height
% with periodic boundary conditions
%
% usage: [ug,vg]=geovel(eta,f,gp,dx,dy)
%
% input eta: interface height [nx x ny x nz+1]
% f: Coriolis parameter, g' [nx x ny]
% gp: reduced gravity, g' [nz]
% dx: grid spacing in ... |
github | sinakhani/Neverworld-master | SGSeddvis_cheap_NV.m | .m | Neverworld-master/MATLAB_CODES/SGSeddvis_cheap_NV.m | 2,681 | utf_8 | 6cb7daa60859e1fdd4c2fcb4bd812481 | % Function to compute SGS volume transport from interface height
% with periodic boundary conditions
%
% usage: [ugh_SGS,vgh_SGS]=SGSflux(eta,f,gp,dx,dy,kfilt,eps,crops)
%
% input eta: interface height [nx x ny x nz+1]
% f: Coriolis parameter, g' [nx x ny]
% gp: reduced gravity, g' [nz]
% dx: g... |
github | qianhongqiang/HQBlockMention-master | HQFuncResult.m | .m | HQBlockMention-master/HQBlockMention/TextParser/HQFuncResult.m | 1,289 | utf_8 | 0f7678664d0234c9e8e35cb3243a5a28 | //
// HQFuncResult.m
// HQBlockMention
//
// Created by qianhongqiang on 16/8/17.
// Copyright © 2016年 qian. All rights reserved.
//
#import "HQFuncResult.h"
#import "HQBlockResult.h"
#import "HQTextResult.h"
#import "HQConst.h"
#import "NSString+HQTextParser.h"
@implementation HQFuncResult
-(HQBlockResult *)has... |
github | philbooks/Kalman-Filter-for-Beginners-master | RadarEKF.m | .m | Kalman-Filter-for-Beginners-master/14.EKF/RadarEKF.m | 866 | utf_8 | ddc90ce66ed2d6e7c093b3889638b73e | function [pos vel alt] = RadarEKF(z, dt)
%
%
persistent A Q R
persistent x P
persistent firstRun
if isempty(firstRun)
A = eye(3) + dt*[ 0 1 0;
0 0 0;
0 0 0 ];
Q = [ 0 0 0;
0 0.001 0;
0 0 0.001 ];
R = 10;
x = [0 ... |
github | philbooks/Kalman-Filter-for-Beginners-master | EulerEKF.m | .m | Kalman-Filter-for-Beginners-master/14.EKF/EulerEKF/EulerEKF.m | 1,515 | utf_8 | 792faf55e2a4e023d561d30cd44f68e4 | function [phi theta psi] = EulerEKF(z, rates, dt)
%
%
persistent H Q R
persistent x P
persistent firstRun
if isempty(firstRun)
H = [ 1 0 0;
0 1 0 ];
Q = [ 0.0001 0 0;
0 0.0001 0;
0 0 0.1 ];
R = [ 6 0;
0 6 ];
x = [0 0 0]';
... |
github | philbooks/Kalman-Filter-for-Beginners-master | EulerUKF.m | .m | Kalman-Filter-for-Beginners-master/15.UKF/EulerUKF/EulerUKF.m | 1,310 | utf_8 | 835ccf39811af913a102f643ffccd109 | function [phi theta psi] = EulerUKF(z, rates, dt)
%
%
persistent Q R
persistent x P
persistent n m
persistent firstRun
if isempty(firstRun)
Q = [ 0.0001 0 0;
0 0.0001 0;
0 0 1 ];
R = [ 6 0;
0 12 ];
x = [0 0 0]';
P = 1*eye(3);
... |
github | philbooks/Kalman-Filter-for-Beginners-master | RadarUKF.m | .m | Kalman-Filter-for-Beginners-master/15.UKF/RadarUKF/RadarUKF.m | 1,085 | utf_8 | e7658d064a2034673ea236148052d4e7 | function [pos vel alt] = RadarUKF(z, dt)
%
%
persistent Q R
persistent x P
persistent n m
persistent firstRun
if isempty(firstRun)
Q = [ 0.01 0 0;
0 0.01 0;
0 0 0.01 ];
R = 100;
x = [0 90 1100]';
P = 100*eye(3);
n = 3;
m = 1;
firstRun = 1;... |
github | philbooks/Kalman-Filter-for-Beginners-master | CompFilterWithPI.m | .m | Kalman-Filter-for-Beginners-master/18.CompFilter/CompFilterWithPI.m | 978 | utf_8 | fab432ce28749cbe382f02e22cac2019 | function [phi theta psi] = CompFilterWithPI(p, q, r, ax, ay, dt)
%
%
persistent p_hat q_hat
persistent prevPhi prevTheta prevPsi
if isempty(p_hat)
p_hat = 0;
q_hat = 0;
prevPhi = 0;
prevTheta = 0;
prevPsi = 0;
end
[phi_a theta_a] = EulerAccel(ax, ay);
[dotPhi dotTheta dotPsi] = BodyT... |
github | matthewmellor/UDP-Real-Time-Grapher-Desktop-App-master | UDPCurrentRealTimePlotting.m | .m | UDP-Real-Time-Grapher-Desktop-App-master/UDPCurrentRealTimePlotting.m | 4,421 | utf_8 | d204aadd21e81b97e55614e36a4b9357 |
%Udp data logging
function UDPCurrentRealTimePlotting
%This function sets up the graphs
%And initializes the udp listening
%Initialize variables
global xlimit;
global numDataSetsInPacket;
global xcounter;
global countToClearBuffer;
global t1;
global secondsBetweenFlushes;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.