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 | uoa1184615/EquationFreeGit-master | patchSmooth1.m | .m | EquationFreeGit-master/Patch/patchSmooth1.m | 376 | utf_8 | 8eeed72eb5476e704fc56d7f0f700ded | % legacy interface patchSmooth1() auto-invokes new patchSys1()
function dudt=patchSmooth1(t,u,patches)
global smOOthCount
if isempty(smOOthCount), smOOthCount=1;
else smOOthCount=smOOthCount+1; end
l2=log2(smOOthCount);
if abs(l2-round(l2))<1e-9
warning('Use new patchSys1 instead of old patchSmooth1')
end
if nar... |
github | uoa1184615/EquationFreeGit-master | configPatches1.m | .m | EquationFreeGit-master/Patch/configPatches1.m | 24,742 | utf_8 | 7290399fac4ce9faab19acbc25ff17ed | % configPatches1() creates a data struct of the design of
% 1D patches for later use by the patch functions such as
% patchSys1(). AJR, Nov 2017 -- 23 Mar 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{configPatches1()}: configure spatial
patches in 1D}
\label{sec:configPatches1}
\localtableofcontents
... |
github | uoa1184615/EquationFreeGit-master | chanDispSpmd.m | .m | EquationFreeGit-master/Patch/chanDispSpmd.m | 12,849 | utf_8 | 7f77310d0654cfb42d486fbc11f9a69e | % chanDispSpmd simulates 2D shear dispersion in a long thin
% channel with 1D patches as a Proof of Principle example of
% parallel computing with spmd. AJR, Nov 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{chanDispSpmd}: simulation of a 1D shear
dispersion via simulation on small patches across a ... |
github | uoa1184615/EquationFreeGit-master | Combescure2022.m | .m | EquationFreeGit-master/Patch/Combescure2022.m | 20,113 | utf_8 | 1b2e5e650fdd07081db07d4a2c4c942a | % For an example nonlinear elasticity in 1D, simulate and
% use MatCont to continue parametrised equilibria. An
% example of working via patches in space. Adapted from the
% example Figure 3(a) of Combescure(2022). AJR Nov 2022 --
% 13 Mar 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{Combescure2022}: ... |
github | uoa1184615/EquationFreeGit-master | heteroDiff.m | .m | EquationFreeGit-master/Patch/heteroDiff.m | 1,322 | utf_8 | e25f9b6b97e32d8fd2d51c533139ff0f | % Computes the time derivatives of heterogeneous diffusion
% in 1D on patches. Used by homogenisationExample.m,
% homoDiffEdgy1.m Optionally becomes Burgers PDE with
% heterogeneous advection. AJR, Apr 2019 -- Nov 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{heteroDiff()}: heterogeneous diffusion... |
github | uoa1184615/EquationFreeGit-master | burgersMap.m | .m | EquationFreeGit-master/Patch/burgersMap.m | 715 | utf_8 | cf2b2e562653643533e6ba812a3c7deb | % Microscale Euler step of the Burgers PDE on a lattice in
% x. Used by BurgersExample.m AJR, 4 Apr 2019 -- Nov 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{burgersMap()}: discretise the PDE microscale}
\label{sec:burgersMap}
This function codes the microscale Euler integration map of
the lattice ... |
github | uoa1184615/EquationFreeGit-master | hyperDiffHetero.m | .m | EquationFreeGit-master/Patch/hyperDiffHetero.m | 5,091 | utf_8 | 59b2e77ff7d0ff83e8b8355ac6ea570b | % Simulate a heterogeneous version of hyper-diffusion PDE in
% 1D on patches as an example application with pairs of edge
% points needing to be interpolated between patches in
% space. AJR, 12 Apr 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{hyperDiffHetero}: simulate a heterogeneous
hyper-diffusion... |
github | uoa1184615/EquationFreeGit-master | rotFilmMicro.m | .m | EquationFreeGit-master/Patch/rotFilmMicro.m | 3,955 | utf_8 | 09ccd41412bd78572f9d4d444e4228c8 | % rotFilmMicro() computes the time derivatives of a 2D
% shallow water flow on a rotating heterogeneous substrate
% on 2D patches in space. AJR, Dec 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{rotFilmMicro()}: 2D shallow water flow
on a rotating heterogeneous substrate}
\label{sec:rotFilmMicro}... |
github | uoa1184615/EquationFreeGit-master | heteroBurstF.m | .m | EquationFreeGit-master/Patch/heteroBurstF.m | 732 | utf_8 | e1c0b0563873325bb9e37ed4ee71f983 | % Simulates a burst of the system linked to by the
% configuration of patches. Used by ??.m
% AJR, 4 Apr 2019 -- 21 Oct 2022
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{heteroBurstF()}: a burst of
heterogeneous diffusion}
\label{sec:heteroBurstF}
This code integrates in time the derivatives computed by... |
github | uoa1184615/EquationFreeGit-master | waterWavePDE.m | .m | EquationFreeGit-master/Patch/waterWavePDE.m | 2,385 | utf_8 | ca0bad5d58464a63a5c783c3f1be9605 | % Codes a nonlinear water wave PDE on a staggered 1D grid
% inside patches in space. Used by waterWaveExample.m
% AJR, 4 Apr 2019 -- Nov 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{waterWavePDE()}: water wave PDE}
\label{sec:waterWavePDE}
This function codes the staggered lattice equation inside... |
github | uoa1184615/EquationFreeGit-master | configPatches2.m | .m | EquationFreeGit-master/Patch/configPatches2.m | 31,145 | utf_8 | fe35a8aef7255a762724332dc96dcbe2 | % configPatches2() creates a data struct of the design of 2D
% patches for later use by the patch functions such as
% patchSys2(). AJR, Nov 2018 -- 12 Apr 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{configPatches2()}: configures spatial
patches in 2D}
\label{sec:configPatches2}
\localtableofcontents... |
github | uoa1184615/EquationFreeGit-master | SwiftHohenbergPattern.m | .m | EquationFreeGit-master/Patch/SwiftHohenbergPattern.m | 6,925 | utf_8 | 8c112fc501c1e2dc9975cdcca02022a3 | % Simulate Swift--Hohenberg PDE in 1D on patches as an
% example application of patches in space with pairs of edge
% points needing to be interpolated between patches. AJR,
% 28 Mar 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{SwiftHohenbergPattern}: patterns of the
Swift--Hohenberg PDE in 1D on pat... |
github | uoa1184615/EquationFreeGit-master | patchEdgeInt2.m | .m | EquationFreeGit-master/Patch/patchEdgeInt2.m | 21,894 | utf_8 | 69c7eba8d39f1ca697e955100def73e9 | % patchEdgeInt2() provides the interpolation across 2D space
% for 2D patches of simulations of a lattice system such as
% a PDE discretisation. AJR, Nov 2018 -- 12 Apr 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{patchEdgeInt2()}: sets 2D patch
edge values from 2D macroscale interpolation}
\label{se... |
github | uoa1184615/EquationFreeGit-master | waveFirst.m | .m | EquationFreeGit-master/Patch/waveFirst.m | 987 | utf_8 | 665ff1a1681b400ba148a4f1f8e7723e | % Computes the time derivatives of a 1D, heterogeneous,
% first-order, wave PDE in 1D on patches. AJR, 17 Dec 2019
% -- Nov 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{waveFirst()}: first-order wave PDE}
\label{sec:waveFirst}
This function codes a lattice, first-order, heterogeneous,
wave \pde\ in... |
github | uoa1184615/EquationFreeGit-master | heteroWave3.m | .m | EquationFreeGit-master/Patch/heteroWave3.m | 1,956 | utf_8 | 69fefa988c006f6c2501b1435e78cb1c | % Computes the time derivatives of heterogeneous waves
% in 3D on patches. AJR, Aug--Sep 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{heteroWave3()}: heterogeneous Waves}
\label{sec:heteroWave3}
This function codes the lattice heterogeneous waves
inside the patches. The wave \pde\ is
\begin{equ... |
github | uoa1184615/EquationFreeGit-master | SwiftHohenbergHetero.m | .m | EquationFreeGit-master/Patch/SwiftHohenbergHetero.m | 13,941 | utf_8 | b586d4ee2d187e24411e6fdf3390a7bd | % Simulate a heterogeneous version of Swift--Hohenberg PDE
% in 1D on patches as an example application with pairs of
% edge points needing to be interpolated between patches in
% space. AJR, 28 Mar 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{SwiftHohenbergHetero}: patterns of a
heterogeneous Swift-... |
github | uoa1184615/EquationFreeGit-master | patchSys2.m | .m | EquationFreeGit-master/Patch/patchSys2.m | 3,739 | utf_8 | 89dfc4cb2288733f30c09a385da6fe21 | % patchSys2() Provides an interface to time integrators
% for the dynamics on patches in 2D coupled across space.
% The system must be a lattice system such as PDE
% discretisations. AJR, Nov 2018 -- 12 Apr 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{patchSys2()}: interface 2D space to time integrato... |
github | uoa1184615/EquationFreeGit-master | patchSmooth2.m | .m | EquationFreeGit-master/Patch/patchSmooth2.m | 376 | utf_8 | f8dd4fe1b147b1fab1ccfaee915fee3e | % legacy interface patchSmooth2() auto-invokes new patchSys2()
function dudt=patchSmooth2(t,u,patches)
global smOOthCount
if isempty(smOOthCount), smOOthCount=1;
else smOOthCount=smOOthCount+1; end
l2=log2(smOOthCount);
if abs(l2-round(l2))<1e-9
warning('Use new patchSys2 instead of old patchSmooth2')
end
if nar... |
github | uoa1184615/EquationFreeGit-master | wavePDE.m | .m | EquationFreeGit-master/Patch/wavePDE.m | 897 | utf_8 | 7602308553e43185da7a08cacefca52c | % Microscale discretisation of the 2D ideal wave PDE inside
% 2D patches in space. Used by the example wave2D.m
% AJR, 4 Apr 2019 -- Nov 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{wavePDE()}: Example of simple wave PDE inside patches}
As a microscale discretisation of \(u_{tt}=\delsq(u)\), so
co... |
github | uoa1184615/EquationFreeGit-master | twoscaleDiffEquil2Errs.m | .m | EquationFreeGit-master/Patch/twoscaleDiffEquil2Errs.m | 12,228 | utf_8 | 6ac1bdbb99ab92212ecd4b99b2944c73 | % Explore errors in the steady state of twoscale
% heterogeneous diffusion in 2D on patches as an example,
% inspired by section 5.3.1 of Freese et al., 2211.13731.
% AJR, 31 Jan 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{twoscaleDiffEquil2Errs}: errors in
equilibria of a 2D twoscale heterogeneous d... |
github | uoa1184615/EquationFreeGit-master | odeOcts.m | .m | EquationFreeGit-master/Patch/odeOcts.m | 624 | utf_8 | 934d39f5a5f7fb20467f467b642ff4f4 | % Provides Matlab-like front-end to Octave ODE solver. Uses
% non-stiff integrator as stiff ones are, surprisingly, far
% too slow. But cannot use lsode, and hence this function,
% recursively. Used by configPatches1.m, configPatches2.m,
% ensembleAverageExample.m, homogenisationExample.m,
% waterWaveExample.m, wave2D... |
github | uoa1184615/EquationFreeGit-master | patchEdgeInt1.m | .m | EquationFreeGit-master/Patch/patchEdgeInt1.m | 16,444 | utf_8 | 4d5890cdcc086ffde04fad57d210c2f8 | % patchEdgeInt1() provides the interpolation across 1D space
% for 1D patches of simulations of a lattice system such as
% PDE discretisations. AJR & JB, Sep 2018 -- 23 Mar 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{patchEdgeInt1()}: sets patch-edge values
from interpolation over the 1D macroscale}... |
github | uoa1184615/EquationFreeGit-master | BurgersExample.m | .m | EquationFreeGit-master/Patch/BurgersExample.m | 5,063 | utf_8 | 5e4cae9564c08774f1a2d207d37608b7 | % Simulate a microscale space-time map of Burgers' PDE
% discretised. Simulate on spatial patches, and via
% projective integration.
% AJR, Nov 2017 -- Jul 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{BurgersExample}: simulate Burgers' PDE on patches}
\label{sec:BurgersExample}
\localtableofcontents
... |
github | uoa1184615/EquationFreeGit-master | abdulleDiffEquil2.m | .m | EquationFreeGit-master/Patch/abdulleDiffEquil2.m | 6,062 | utf_8 | 010012d53be7d85d7b5cd2a2da563cb2 | % Solve for steady state of multiscale heterogeneous diffusion
% in 2D on patches as an example application, varied from
% example of section 5.1 of Abdulle et al., (2020b). AJR,
% 31 Jan 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{abdulleDiffEquil2}: equilibrium of a 2D
multiscale heterogeneous dif... |
github | uoa1184615/EquationFreeGit-master | theRes.m | .m | EquationFreeGit-master/Patch/theRes.m | 1,064 | utf_8 | a07136df69b41921155bba68f9943c58 | % This functions converts a vector of values into the
% interior values of the patches, then evaluates the time
% derivative of the system at $t=1$, and returns the vector
% of patch-interior time derivatives. AJR, 1 Feb 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{theRes()}: wrapper function to zero ... |
github | uoa1184615/EquationFreeGit-master | patchSys3.m | .m | EquationFreeGit-master/Patch/patchSys3.m | 4,266 | utf_8 | 5fe96a5fc1710aa27ba6225006093653 | % patchSys3() provides an interface to time integrators
% for the dynamics on patches in 3D coupled across space.
% The system must be a lattice system such as PDE
% discretisations. AJR, Aug 2020 -- 12 Apr 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{patchSys3()}: interface 3D space to time integrato... |
github | uoa1184615/EquationFreeGit-master | wave2D.m | .m | EquationFreeGit-master/Patch/wave2D.m | 5,167 | utf_8 | 3f6743ba731984dba4dc6a49149c40df | % Simulate the linear wave PDE in 2D on patches.
% First it checks the spectrum of the system.
% AJR, Nov 2018 -- 17 Apr 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{wave2D}: example of a wave on patches in 2D}
\label{sec:wave2D}
\localtableofcontents
For \(u(x,y,t)\), test and simulate the simple wa... |
github | uoa1184615/EquationFreeGit-master | chanDispMicro.m | .m | EquationFreeGit-master/Patch/chanDispMicro.m | 1,965 | utf_8 | c4fb6f8312af4299282260971007cb4a | % chanDispMicro() computes the time derivatives of
% heterogeneous advection-diffusion in 2D along a long thin
% channel on 1D array patches. AJR, Nov 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{chanDispMicro()}: heterogeneous 2D
advection-diffusion in a long thin channel}
\label{sec:chanDispMicr... |
github | uoa1184615/EquationFreeGit-master | rotFilmSpmd.m | .m | EquationFreeGit-master/Patch/rotFilmSpmd.m | 12,806 | utf_8 | 5135d38aef148bbc8496b6f86a1675d5 | % rotFilmSpmd simulates 2D fluid film flow on a rotating
% substrate with 2D patches as a Proof of Principle example
% of parallel computing with spmd. AJR, Dec 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{rotFilmSpmd}: simulation of a 2D shallow
water flow on a rotating heterogeneous substrate}
\la... |
github | uoa1184615/EquationFreeGit-master | patchCwts.m | .m | EquationFreeGit-master/Patch/patchCwts.m | 2,679 | utf_8 | a72c06276a2b4c05eca69bc9515e179e | % Compute the weightings for the polynomial
% interpolation of field values for coupling.
% AJR, 7 Aug 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{patchCwts}: weights of polynomial interpolation}
\label{sec:patchCwts}
\subsection{Introduction}
Computes the weightings for the polynomial interpolati... |
github | uoa1184615/EquationFreeGit-master | heteroDispersiveWave3.m | .m | EquationFreeGit-master/Patch/heteroDispersiveWave3.m | 6,865 | utf_8 | 1b4e4ff337d348654d1ae8b67f69492b | % Simulate in 3D on patches the heterogeneous dispersive
% waves in a fourth-order wave PDE. AJR, 16 Apr 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{heteroDispersiveWave3}: heterogeneous
Dispersive Waves from 4th order PDE}
\label{sec:heteroDispersiveWave3}
This uses small spatial patches to simul... |
github | uoa1184615/EquationFreeGit-master | heteroWave2.m | .m | EquationFreeGit-master/Patch/heteroWave2.m | 3,466 | utf_8 | e35ffe6516a19822a50855c63c3f34c9 | % Computes the time derivatives of forced heterogeneous
% waves (slightly damped) in 2D on patches. AJR, Aug 2021
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{heteroWave2()}: heterogeneous Waves}
\label{sec:heteroWave2}
This function codes the lattice heterogeneous waves inside
the patches. The forc... |
github | uoa1184615/EquationFreeGit-master | nonDiffPDE.m | .m | EquationFreeGit-master/Patch/nonDiffPDE.m | 876 | utf_8 | 46e7abc9257ef65c252ffef6c7f1f550 | % Microscale discretisation of a nonlinear diffusion PDE in
% 2D space (x,y) in 2D patches.
% AJR, 5 Apr 2019 -- Nov 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\paragraph{Example of nonlinear diffusion PDE inside patches}
As a microscale discretisation of \(u_t=\delsq(u^3)\), code
\(\dot u_{ijkl} =\frac1{\delta x^2}... |
github | uoa1184615/EquationFreeGit-master | homoDiffSoln2.m | .m | EquationFreeGit-master/Patch/homoDiffSoln2.m | 12,114 | utf_8 | ea97f19a9c9f8e2b9ed86dec927b3395 | % Solve for steady state of heterogeneous diffusion in 2D on
% patches as an example application. The microscale is of
% known period so we interpolate next-to-edge values to get
% opposite edge values. This version implements scenarios
% inspired by Biezemans et al. (2022) \S3, p.12. AJR, Apr
% 2022
%!TEX root = ../... |
github | uoa1184615/EquationFreeGit-master | heteroDiffF.m | .m | EquationFreeGit-master/Patch/heteroDiffF.m | 1,742 | utf_8 | 50afdf6b3a072798ee453482c350b375 | % Computes the time derivatives of forced heterogeneous
% diffusion in 1D on patches. AJR, Apr 2019 -- 3 Jan 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{heteroDiffF()}: forced heterogeneous diffusion}
\label{sec:heteroDiffF}
This function codes the lattice heterogeneous diffusion
inside the patc... |
github | uoa1184615/EquationFreeGit-master | patchSmooth3.m | .m | EquationFreeGit-master/Patch/patchSmooth3.m | 376 | utf_8 | 884dc8b5cd180f6a18e78fd7d0284768 | % legacy interface patchSmooth3() auto-invokes new patchSys3()
function dudt=patchSmooth3(t,u,patches)
global smOOthCount
if isempty(smOOthCount), smOOthCount=1;
else smOOthCount=smOOthCount+1; end
l2=log2(smOOthCount);
if abs(l2-round(l2))<1e-9
warning('Use new patchSys3 instead of old patchSmooth3')
end
if nar... |
github | uoa1184615/EquationFreeGit-master | configPatches3.m | .m | EquationFreeGit-master/Patch/configPatches3.m | 33,989 | utf_8 | a27ad1c3bdc45bd11440e731216fa33a | % configPatches3() creates a data struct of the design of 3D
% patches for later use by the patch functions such as
% patchSys3(). AJR, Aug 2020 -- 12 Apr 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{configPatches3()}: configures spatial
patches in 3D}
\label{sec:configPatches3}
\localtableofcontents... |
github | uoa1184615/EquationFreeGit-master | quasiLogAxes.m | .m | EquationFreeGit-master/Patch/quasiLogAxes.m | 7,787 | utf_8 | 2e66a0625f73ccf8ead15ef75a5bde19 | % quasiLogAxes() transforms selected axes of the given plot
% to a quasi-log axes (via asinh), including possibly
% transforming color axis. AJR, 25 Sep 2021 -- 18 Apr 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{quasiLogAxes()}: transforms some axes of a
plot to quasi-log}
\label{sec:quasiLogAxes}
... |
github | uoa1184615/EquationFreeGit-master | idealWavePDE.m | .m | EquationFreeGit-master/Patch/idealWavePDE.m | 2,006 | utf_8 | 0a2c31be68f6887c7e2742e1896492fe | % Codes the ideal wave PDE on a staggered 1D grid inside
% patches in space. Used by waterWaveExample.m
% AJR, 4 Apr 2019 -- Nov 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{idealWavePDE()}: ideal wave PDE}
\label{sec:idealWavePDE}
This function codes the staggered lattice equation inside
the pat... |
github | uoa1184615/EquationFreeGit-master | heteroWave.m | .m | EquationFreeGit-master/Patch/heteroWave.m | 1,364 | utf_8 | b07ccdac5060fc6af73096ee80efc543 | % Computes the time derivatives of heterogeneous wave
% in 1D on patches. Used by homoWaveEdgy1.m,
% AJR, 26 Nov 2019 -- Nov 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{heteroWave()}: wave in heterogeneous
media with weak viscous damping}
\label{sec:heteroWave}
This function codes the lattice he... |
github | uoa1184615/EquationFreeGit-master | heteroLanLif1D.m | .m | EquationFreeGit-master/Patch/heteroLanLif1D.m | 2,278 | utf_8 | d1c006eb26861126db87a18042695e33 | % Computes the time derivatives of heterogeneous
% Landau--Lifshitz PDE on 1D lattice within spatial patches.
% From Leitenmaier & Runborg, arxiv.org/abs/2108.09463 and
% used by homoLanLif1D.m AJR, Sep 2021
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{heteroLanLif1D()}: heterogeneous Landau--Lifshitz... |
github | uoa1184615/EquationFreeGit-master | heteroDiff3.m | .m | EquationFreeGit-master/Patch/heteroDiff3.m | 1,917 | utf_8 | 1cd7c41c67dc5bb4941e58b0db310269 | % heteroDiff3() computes the time derivatives of
% heterogeneous diffusion in 3D on patches. Adapted from 2D
% heterogeneous diffusion. JEB & AJR, May--Sep 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{heteroDiff3()}: heterogeneous diffusion}
\label{sec:heteroDiff3}
This function codes the lattic... |
github | uoa1184615/EquationFreeGit-master | monoscaleDiffEquil2.m | .m | EquationFreeGit-master/Patch/monoscaleDiffEquil2.m | 6,326 | utf_8 | e4091ed6937be2ebd3555e0a9985035e | % Solve for steady state of monoscale heterogeneous
% diffusion in 2D on patches as an example application, from
% section 5.2 of Freese, 2211.13731. AJR, 31 Jan 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{monoscaleDiffEquil2}: equilibrium of a 2D
monoscale heterogeneous diffusion via small patches}... |
github | uoa1184615/EquationFreeGit-master | heteroDiff2.m | .m | EquationFreeGit-master/Patch/heteroDiff2.m | 1,225 | utf_8 | 967c37585d32078f06055a9df468bf78 | % Computes the time derivatives of heterogeneous diffusion
% in 2D on patches. Adapted from 1D heterogeneous diffusion.
% JEB & AJR, May 2020 -- Nov 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{heteroDiff2()}: heterogeneous diffusion}
\label{sec:heteroDiff2}
This function codes the lattice heter... |
github | uoa1184615/EquationFreeGit-master | randAdvecDiffEquil2.m | .m | EquationFreeGit-master/Patch/randAdvecDiffEquil2.m | 6,879 | utf_8 | c3f92a6065c8df6d796e18a6ea619c96 | % Solve for steady state of two-scale heterogeneous
% diffusion in 2D on patches as an example application
% involving Neumann boundary conditions, from section 6.2 of
% Bonizzoni, 2211.15221. AJR, 1 Feb 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{randAdvecDiffEquil2}: equilibrium of a 2D
random het... |
github | uoa1184615/EquationFreeGit-master | SwiftHohenberg2dPattern.m | .m | EquationFreeGit-master/Patch/SwiftHohenberg2dPattern.m | 7,101 | utf_8 | 6c2e0a887d3bc61c45a03c76692f2e90 | % Simulate Swift--Hohenberg PDE in 2D on patches as an
% example application of patches in 2D space with pairs of
% edge points needing to be interpolated between patches.
% AJR, 13 Apr 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{SwiftHohenberg2dPattern}: patterns of the
Swift--Hohenberg PDE in 2D o... |
github | uoa1184615/EquationFreeGit-master | burgersBurst.m | .m | EquationFreeGit-master/Patch/burgersBurst.m | 1,246 | utf_8 | f0f01615492ea5012e74cba12816fd17 | % Simulates a burst in time of a microscale map that is
% applied on patches in space. Used by BurgersExample.m
% AJR, 4 Apr 2019
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{burgerBurst()}: code a burst of the patch map}
\label{sec:burgerBurst}
\begin{matlab}
%}
function [ts, us] = burgersBurst(ti, ui... |
github | uoa1184615/EquationFreeGit-master | RK2mesoPatch.m | .m | EquationFreeGit-master/Patch/RK2mesoPatch.m | 8,304 | utf_8 | 66bc19ff089e5222de4554896a9d96e6 | % RK2mesoPatch() is a simple example of Runge--Kutta, 2nd
% order, integration of a given deterministic system on
% patches. AJR, Sept 2020 -- Dec 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{RK2mesoPatch()}}
\label{sec:RK2mesoPatch}
This is a Runge--Kutta, 2nd order, integration of a given
determini... |
github | uoa1184615/EquationFreeGit-master | BurgersPDE.m | .m | EquationFreeGit-master/Patch/BurgersPDE.m | 894 | utf_8 | cdf32fe35b336290773eee01ed34c16b | % A microscale discretisation of Burgers' PDE on a lattice x.
% AJR 5 Apr 2019 -- Jun 2020
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\paragraph{Example of Burgers PDE inside patches}
As a microscale discretisation of Burgers' \pde\
\(u_t=u_{xx}-30uu_x\), here code \(\dot u_{ij}
=\frac1{\delta x^2} (u_{i+1,j}-2u_{i,j... |
github | uoa1184615/EquationFreeGit-master | twoscaleDiffEquil2.m | .m | EquationFreeGit-master/Patch/twoscaleDiffEquil2.m | 5,874 | utf_8 | 72360a5657f3775100239977c8460614 | % Solve for steady state of twoscale heterogeneous diffusion
% in 2D on patches as an example application, from section
% 5.3.1 of Freese, 2211.13731. AJR, 31 Jan 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{twoscaleDiffEquil2}: equilibrium of a 2D
twoscale heterogeneous diffusion via small patches}
... |
github | uoa1184615/EquationFreeGit-master | patchSys1.m | .m | EquationFreeGit-master/Patch/patchSys1.m | 3,219 | utf_8 | a1fb92a0c8cf097956420a725b7f4cef | % patchSys1() provides an interface to time integrators for
% the dynamics on patches coupled across space. The system
% must be a lattice system such as PDE discretisations.
% AJR, Nov 2017 -- 31 Mar 2023
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{patchSys1()}: interface 1D space to time integrators}... |
github | uoa1184615/EquationFreeGit-master | heteroBurst.m | .m | EquationFreeGit-master/Patch/heteroBurst.m | 790 | utf_8 | 44b59399b9035cafb49f59bce3a33b3a | % Simulates a burst of the system linked to by the
% configuration of patches. Used by homogenisationExample.m,
% homoDiffEdgy1.m, and maybe homoLanLif1D.m
% AJR, 4 Apr 2019 -- Sep 2021
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{heteroBurst()}: a burst of heterogeneous diffusion}
\label{sec:heteroBurs... |
github | uoa1184615/EquationFreeGit-master | MMburstAcc.m | .m | EquationFreeGit-master/ProjInt/MMburstAcc.m | 1,007 | utf_8 | 212e6fa96d948014cf0e9a656327a56c | % Short explanation for users typing "help fun"
% Author, date
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\paragraph{Code an accurate burst of Michaelis--Menten enzyme kinetics}
Integrate a burst of length~\verb|bT| of the \ode{}s for the
Michaelis--Menten enzyme kinetics at parameter~\(\epsilon\)
inherited from above. C... |
github | uoa1184615/EquationFreeGit-master | PIRK2.m | .m | EquationFreeGit-master/ProjInt/PIRK2.m | 14,636 | utf_8 | c60cf0db519e9b6bec8fb3ed5d3a4783 | % PIRK2() implements second-order Projective Integration
% with a user-specified microsolver. The macrosolver adapts
% the explicit second-order Runge--Kutta Improved Euler
% scheme. JM and AJR, Oct 2018 -- Oct 2020. Execute with no
% arguments to see an example.
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\... |
github | uoa1184615/EquationFreeGit-master | PIG.m | .m | EquationFreeGit-master/ProjInt/PIG.m | 14,213 | utf_8 | 3c6184d1532de0ab1665b48a3cdd7008 | % PIG implements Projective Integration scheme with any
% inbuilt integrator or user-specified integrator for the
% slow-time macroscale, and with any inbuilt/user-specified
% microsolver. JM & AJR, Sept 2018 -- Apr 2019.
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{PIG()}: Projective Integration via a Ge... |
github | uoa1184615/EquationFreeGit-master | linearBurst.m | .m | EquationFreeGit-master/ProjInt/linearBurst.m | 839 | utf_8 | ebbd668d39488aea22480543f39ccaa4 | % Used by PIRKexample.m
% AJR, Apr 2019
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\paragraph{A micro-burst simulation}
Used by \verb|PIRKexample.m|. Code the micro-burst function
using simple Euler steps. As a rule of thumb, the time-steps
\verb|dt| should satisfy $\verb|dt| \le
1/|\verb|fastband|(1)|$ and the time to ... |
github | uoa1184615/EquationFreeGit-master | PIRK4.m | .m | EquationFreeGit-master/ProjInt/PIRK4.m | 12,579 | utf_8 | 9c94ee399df7625a5a3c86670fa4309f | % PIRK4 implements fourth-order Projective Integration with
% a user-specified microsolver. The macrosolver adapts the
% explicit fourth-order Runge--Kutta scheme.
% JM, Oct 2018--Apr 2019.
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{PIRK4()}: projective integration of fourth-order accuracy}
\label{se... |
github | uoa1184615/EquationFreeGit-master | rk2Int.m | .m | EquationFreeGit-master/ProjInt/rk2Int.m | 2,458 | utf_8 | 73bec46b0040fb09024a567dff167dee | % rk2Int() is a simple example of Runge--Kutta, 2nd order,
% integration of a given deterministic ODE. Used by
% PIG.m, PIGExample.m, PIGExplore.m, homogenisationExample.m
% AJR, 4 Apr 2019
%{
This is a simple example of Runge--Kutta, 2nd order,
integration of a given deterministic \ode.
\begin{matlab}
%}
function [ts... |
github | uoa1184615/EquationFreeGit-master | MMburst.m | .m | EquationFreeGit-master/ProjInt/MMburst.m | 914 | utf_8 | cc5651080a0e3428d0668d1514648bbb | % Short explanation for users typing "help fun"
% Author, date
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\paragraph{Code a burst of Michaelis--Menten enzyme kinetics}
Integrate a burst of length~\verb|bT| of the \ode{}s for the
Michaelis--Menten enzyme kinetics at parameter~\(\epsilon\)
inherited from above. Code \texts... |
github | uoa1184615/EquationFreeGit-master | odeOct.m | .m | EquationFreeGit-master/ProjInt/odeOct.m | 508 | utf_8 | 8be6e35ca6931e20fbe997ac46b7015f | % Provides Matlab-like front-end to Octave ODE solver. But
% cannot use lsode, and hence this, recursively. Used by
% MMburst.m, PIG.m, PIGExample.m, PIGExplore.m
% AJR, 4 Apr 2019
%{
\begin{matlab}
%}
function [ts,xs] = odeOct(dxdt,tSpan,x0)
if length(tSpan)>2, ts = tSpan;
else ts = linspace(tSpan(1),tSpan(en... |
github | uoa1184615/EquationFreeGit-master | bbgen.m | .m | EquationFreeGit-master/ProjInt/bbgen.m | 1,062 | utf_8 | 98e5f46df9870706e518440596bec800 | %Generate a `black-box' microsolver suitable for PI from a standard
%numerical method, an ordinary differential equation, and a given upper
%bound on the time-step.
%JM,Sept 2018.
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\subsection{\texttt{bbgen()}}
\label{sec:bbgen}
\verb|bbgen()| is a simple function that takes a s... |
github | uoa1184615/EquationFreeGit-master | cdmc.m | .m | EquationFreeGit-master/ProjInt/cdmc.m | 2,446 | utf_8 | d12a17f15f6948ac9b557d3c5befd9a3 | % Relax a given initial condition to one onto the slow
% manifold by two steps of the 'xmas-tree' algorithm.
% JM & AJR, July 2018 -- Apr 2019
%!TEX root = ../Doc/eqnFreeDevMan.tex
%{
\section{\texttt{cdmc()}: constraint defined manifold computing}
\label{sec:cdmc}
The function \verb|cdmc()| iteratively applies the gi... |
github | PamirGhimire/visualServoing_ROSProject-master | checkratio.m | .m | visualServoing_ROSProject-master/IBVS_QrPointsBased/MATLAB/qrIdentifierDetection/checkratio.m | 442 | utf_8 | 60435c493dc630593aabf762f3736443 | %% Function for checking bwbwb ratio for qr identifier detection
% correct ratio = 1:1:3:1:1
% Pamir Ghimire, December 10, 2017
function ratiopositive = checkratio(b1, w1, b2, w2, b3)
ratiopositive = false;
input = [b1, w1, b2, w2, b3];
desired = [1, 1, 3, 1, 1];
input = input / min(input);
tolerance = 0.... |
github | SergioMarreroMarrero/OldWorks-master | TaluDMet.m | .m | OldWorks-master/3)slopeSoftwareOptimized/Software/3.Interfaz guide/TaluDMet.m | 41,106 | utf_8 | 9f552c51f9fcf44098c45a2dd8fe1693 | function varargout = TaluDMet(varargin)
% TALUDMET MATLAB code for TaluDMet.fig
% TALUDMET, by itself, creates coordenadax new TALUDMET or raises the existing
% singleton*.
%
% Altura = TALUDMET returns the handle to coordenadax new TALUDMET or the handle to
% the existing singleton*.
%
% TALUD... |
github | SergioMarreroMarrero/OldWorks-master | DSSStartup.m | .m | OldWorks-master/6)Montecarlo-LowVoltage/Software/apoyo/DSSStartup.m | 425 | utf_8 | 5a54c00cbb8bef30ce34a677898c1229 | %--------------------------------------------------------------------------
function [Start,Obj,Text] = DSSStartup
% Function for starting up the DSS
%instantiate the DSS Object
Obj = actxserver('OpenDSSEngine.DSS');
%
%Start the DSS. Only needs to be executed the first time w/in a
... |
github | SergioMarreroMarrero/OldWorks-master | startAndGoal.m | .m | OldWorks-master/2)AutonomoDrive/Planification/Matlab/startAndGoal.m | 1,716 | utf_8 | ebf0bf51e9e758eb6bfe21b6154955c9 | function [start,goal] =startAndGoal(map,option)
switch lower(option)
case 'r'
freeVal=find(map==0);
% Start
indexStart=round(rand*length(freeVal));
start=freeVal(indexStart);
freeVal(indexStart)=[];
%Goal
indexGoal=round(rand*len... |
github | SergioMarreroMarrero/OldWorks-master | localizationFunction.m | .m | OldWorks-master/2)AutonomoDrive/Planification/Matlab/localizacion/localizationFunction.m | 5,378 | utf_8 | c71bf82b62c4a08f04b780adfa1d0f14 | function [ whereTheRobotIs] = localizationFunction( map,posStart )
% 1) Definicion de algunas variables iniciales
blockCode=-5;positionRobotcode=-10;posWhereRobotCouldBecode=-15;
map(map==1)=blockCode;
originalMap=map;mapPosition=map;
pathThatRobotHaveDone=[]; % Store the path walked
%2)
pathThatRobotHaveDone=... |
github | idnavid/misc-master | demo_gif.m | .m | misc-master/demo_gif.m | 409 | utf_8 | 43aefadbc9e033d9ceb47347da232fff | function demo_gif()
filename = './clock.gif';
x = 0:0.1:100;
for i = 1:100
plot(x,i*x/1000);
ylim([0 10])
save_gif(filename,i)
end
end
function save_gif(filename,n)
frame = getframe;
im = frame2im(frame);
[imind,cm] = rgb2ind(im,256);
% Write to the GIF File
if n == 1
imwrite(imind,cm,filename,'gif', '... |
github | JuXinCheng/rtklib_2.4.2-master | plotlexion.m | .m | rtklib_2.4.2-master/util/testlex/plotlexion.m | 1,593 | utf_8 | 1333e9ae36ebce0dfcb9da8ab7972734 | function plotlexion(file,index)
%
% plot lex ionosphere correction error
%
% 2010/12/09 0.1 new
%
if nargin<1, file='LEXION_20101204'; end
if nargin<2, index=2; end
eval(file);
td=caltomjd(epoch);
time=time(index);
ep=mjdtocal(td+(time+0.5)/86400);
ts=sprintf('%04.0f/%02.0f/%02.0f %02.0f:%02.0f',ep(1:5));
% plot le... |
github | JuXinCheng/rtklib_2.4.2-master | testionex.m | .m | rtklib_2.4.2-master/test/utest/testionex.m | 326,974 | utf_8 | e8fe871f5e28acb961451acf230d028f | function testionex
[tec,rms]=testdata1;
range=0:0.01:10;
figure
[c,h]=contourf(0:2:360,90:-2:-90,tec,range);
set(h,'edgecolor','none');
caxis(range([1,end]));
title('vertical iono delay');
figure
[c,h]=contourf(0:2:360,90:-2:-90,sqrt(rms),range);
set(h,'edgecolor','none');
caxis(range([1,end]));
title('vertical ion... |
github | JuXinCheng/rtklib_2.4.2-master | testionppp.m | .m | rtklib_2.4.2-master/test/utest/testionppp.m | 1,136 | utf_8 | 7023ec339e81fd7fa267d573c3d2d588 | function testionppp
%
% test RTCA/DO229C bug (A.4.4.10.1 A-22,23)
%
az=0:0.1:360;
figure, axes, hold on, box on, grid on;
pos=[80,0];
for i=1:length(az), posp(i,:)=ionppp(pos,[az(i),0]); end
plot(posp(:,2),posp(:,1),'.');
pos=[-75,170];
for i=1:length(az), posp(i,:)=ionppp(pos,[az(i),0]); end
plot(posp(:,2),posp(:,... |
github | JuXinCheng/rtklib_2.4.2-master | plotigp.m | .m | rtklib_2.4.2-master/test/utest/plotigp.m | 1,278 | utf_8 | bf7bb7d90d3221bbc76f008e0c03363f | function plotigp
figure
mesh=readmesh;
gmt('mmap','proj','eq','cent',[135,35],'scale',10,'pos',[0,0,1,1]);
gmt('mcoast');
gmt('mgrid','gint',2,'lint',10,'color',[.5 .5 .5]);
for i=1:size(mesh,1)
gmt('mplot',mesh(i,1),mesh(i,2),'r','marker','.','markersize',10);
end
plotarea([36,138],15);
% plot ipp area ------... |
github | moskante/OpenTouch_Matlab-master | pause_arduino.m | .m | OpenTouch_Matlab-master/CODE/pause_arduino.m | 955 | utf_8 | bdb85291db86dfe46bafa65788160ecc | %Function pause_arduino make a pause (blocking!) for a time interval equal
%to interval and read the voltage specified by aruino_board/pin and write
%it to an output file.
%interval: time interval in seconds
%arduino_board: an arduino object
%pin: the pin to read
%fileout: serial object to write on.
%
%Example
... |
github | douyouzhe/Machine-Learning-for-Signal-Processing-master | pdco.m | .m | Machine-Learning-for-Signal-Processing-master/LDA_language_classification/Code/pdco.m | 54,596 | utf_8 | 9b21477124e43a4155c4b72508dccb8f | function [x,y,z,inform,PDitns,CGitns,time] = ...
pdco( Fname,Aname,b,bl,bu,d1,d2,options,x0,y0,z0,xsize,zsize )
%-----------------------------------------------------------------------
% pdco.m: Primal-Dual Barrier Method for Convex Objectives (23 Sep 2003)
%--------------------------------------------------------... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | dvar4abcdk.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/dvar4abcdk.m | 3,316 | utf_8 | 058df17bcb6eb4c30e5c5e4b0a78d9bf | function [P,sigma,dA,dB,dC,dD,dK] = dvar4abcdk(x,u,y,f,p,A,B,C,D,K,U,Zps)
%DVAR4ABCDK Asymptotic variance of the PBSIDopt (VARX only) estimation
% P=dvar4abck(x,u,f,p,A,B,C,DK,U,Zps) returns the covariance of the
% estimated state space matrices and acts as a pre-processor for dvar2frd.
% The latter is used to c... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | lordvarxydist.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/lordvarxydist.m | 6,288 | utf_8 | bd92ed5b69652e03f4a87777bf0d9b4d | function [S,X] = lordvarxydist(u,d,y,mu,f,p,reg,opt,c,noD,ObsMatPoint)
%LORDVARXYDIST is LORDVARX for a special case with output disturbances
% x(k+1) = A kron(mu(k),x(k)) + B kron(mu(k),u(k)) + K kron(mu(k),e(k))
% y(k) = C x(k) + [Du, Dd] [u(k); kron(mu(k),d(k))] + e(k)
%
% if c(4)=1 then Dd is not var... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | dvar2eig.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/dvar2eig.m | 602 | utf_8 | 34202c6ba1c8543cd49f5820c2b1e2ff | function [E,covE] = dvar2eig(P,A)
%DVAR2EIG Eigenvalues and its covariance estimation
% [E,covE]=dvar2frd(P,A) returns the estimated eigenvalues and its
% covariance for the state space matrix A and its covariance P.
% Ivo Houtzager
% Delft Center of Systems and Control
% Delft University of Technology
%... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | spaavf.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/spaavf.m | 8,045 | utf_8 | 45c5f4decdd81c84cde81c45ea634e7c | function [G,w,Coh] = spaavf(u,y,r,dt,Nband,Nfft,ZeroPadding,Wname)
%SPAAVF Spectral analysis with frequency averaging
% [G,W]=SPAAVF(U,Y,Ts,Nband) determines a frequency-domain estimate
% SYS=FRD(G,W) of the transfer function of the plant. The sample time is
% given in Ts. Nband is the number of frequency bands t... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | dnyquistdetsd.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/dnyquistdetsd.m | 2,246 | utf_8 | 316ca202611ed3a61b547168e98175f9 | function dnyquistdetsd(G,covG,sd,Greal)
%DNYQUISTDETSD Nyquist diagram with probalistic error bounds (det(G))
% dnyquistdetsd(G,covG,sd) plots the nyquist diagram using the determinant
% of the estimated frequency response given in G and the frequency bounds
% given in covG and sd. The value sd is the standard d... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | lordvarx.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/lordvarx.m | 8,773 | utf_8 | 44ca081bff91cd9866ddbcc209c13735 | function [S,X] = lordvarx(u,y,mu,f,p,reg,opt,c,noD,ObsMatPoint)
%LORDVARX Closed-loop LPV system identification using the PBSIDopt method.
% [S,X]=lordvarx(u,y,mu,f,p) delivers information about the order of the
% Linear Parameter Varing system and acts as a pre-processor for lmodx.
% The latter is used to iden... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | dvar4abck.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/dvar4abck.m | 3,215 | utf_8 | 02975a072981cc80129a641df8b8fd61 | function [P,sigma,dA,dB,dC,dK] = dvar4abck(x,u,y,f,p,A,B,C,K,U,Zps)
%DVAR4ABCK Asymptotic variance of the PBSIDopt (VARX only) estimation
% P=dvar4abck(x,u,f,p,A,B,C,K,U,Zps) returns the covariance of the
% estimated state space matrices and acts as a pre-processor for dvar2frd.
% The latter is used to calculate... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | rpbsid.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/rpbsid.m | 14,530 | utf_8 | c27e37236a8ce6a7bf4db32bc0bc7212 | function [Ak,Bk,Ck,Dk,Kk,err,eigA,regA] = rpbsid(u,y,f,p,n,W,idopts,rlsopts,A,B,C,D,K,s)
%RPBSID Recursive Predictor-based Subspace IDentification
% [A,B,C,D,K]=rpbsid(u,y,f,p,n) reursively estimates the matrices A, B, C,
% D and K of the state space model:
%
% x(N) = A x(N-1) + B u(N-1) + K e(N-1)
% ... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | sim.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/@idafflpv/sim.m | 3,203 | utf_8 | 0b3bda0b8d5cab02080d8f3436ebb3d0 | function [y,t,x] = sim(sys,u,t,p,e,x0)
%SIM Linear response simulation of affine LPV state-space model.
% [Y,T,X] = SIM(M,U,T,MU) returns the output response of the IDAFFLPV
% model M to the input and scheduling signal described by U, MU and T.
% The time vector T consists of regularly spaced time samples, U and... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | display.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/@idafflpv/display.m | 7,346 | utf_8 | 7b6e9ea522f9f96baae2cb837ea575e0 | function display(sys)
%IDAFFLPV/DISPLAY Pretty-print for IDAFFLPV models.
% Get size
[Ny,Nu] = size(sys);
% Use ISSTATIC to account for delays
StaticFlag = isstatic(sys);
% Handle various types
if ((Ny==0 || Nu==0) && StaticFlag)
disp(xlate('Empty affine LPV state-space model.'))
else
% Display ... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | findstates.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/@idafflpv/findstates.m | 5,220 | utf_8 | 80ca78bbdbfb3de9885bda4a8fe898d2 | function x0 = findstates(sys,u,y,t,p,type,wn)
%FINDSTATES Estimate initial states of the model for a given data set.
% X0 = FINDSTATES(M,U,Y,T,MU) returns the residue response and initial
% state of the IDAFFLPV model M to the input and scheduling signal
% described by U, Y, MU and T. The time vector T consists... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | predict.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/@idafflpv/predict.m | 3,900 | utf_8 | 1550385bd044b2391df567f2e4ec70de | function [y,t,x] = predict(sys,u,y,t,p,x0,type)
%PREDICT Linear response simulation of affine LPV state-space predictor.
% [Y,T,X] = PREDICT(M,U,Y,T,MU) returns the predicted output response of
% the IDAFFLPV model M to the input and scheduling signal described by U,
% Y, MU and T. The time vector T consists of ... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | resid.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/@idafflpv/resid.m | 4,059 | utf_8 | 7f209685ad0625e1c20982807dfff7e1 | function [e,t] = resid(sys,u,y,t,p,x0,type)
%RESID Compute the residuals associated with an IDAFFLPV.
% E = RESID(M,U,Y,T,MU) returns the residue response of the IDAFFLPV model
% M to the input and scheduling signal described by U, Y, MU and T. The
% time vector T consists of regularly spaced time samples, U, Y,... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | spg_mmv.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/private/spg_mmv.m | 2,900 | utf_8 | fdede75f442cc17862d6d4252d0d7cfd | function [x,r,g,info] = spg_mmv( A, B, sigma, options, x0)
%SPG_MMV Solve multi-measurement basis pursuit denoise (BPDN)
%
% SPG_MMV is designed to solve the basis pursuit denoise problem
%
% (BPDN) minimize ||X||_1,2 subject to ||A X - B||_2,2 <= SIGMA,
%
% where A is an M-by-N matrix, B is an M-by-G matrix... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | spg_mmv_stopvali.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/private/spg_mmv_stopvali.m | 3,198 | utf_8 | 1590321e24fb5c98666449eb424584dc | function [x,r,g,info] = spg_mmv_stopvali( A, B, A2, B2, sigma, options, x0)
%SPG_MMV Solve multi-measurement basis pursuit denoise (BPDN)
%
% SPG_MMV is designed to solve the basis pursuit denoise problem
%
% (BPDN) minimize ||X||_1,2 subject to ||A X - B||_2,2 <= SIGMA,
%
% where A is an M-by-N matrix, B is... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | spgl1_stopvali.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/private/spgl1_stopvali.m | 31,870 | utf_8 | 10a3cc0feb68137df5dc691058289e6d | function [x,r,g,info] = spgl1_stopvali( A, b, A2, b2, tau, sigma, x, options )
%SPGL1 Solve basis pursuit, basis pursuit denoise, and LASSO
%
% [x, r, g, info] = spgl1(A, b, tau, sigma, x0, options)
%
% ---------------------------------------------------------------------
% Solve the basis pursuit denoise (BPDN) probl... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | kernmatrix.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/private/kernmatrix.m | 3,842 | utf_8 | f5ac9d877d0e03e735508333491c3fcb | function omega = kernmatrix(Xtrain,kernel_type,kernel_pars,Xt)
%KERNMATRIX Construct the positive (semi-) definite and symmetric kernel matrix
%
% Omega = kernel_matrix(X, kernel_fct, sig2)
%
% This matrix should be positive definite if the kernel function
% satisfies the Mercer condition. Construct the kernel value... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | ellipsebnd.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/private/ellipsebnd.m | 8,035 | utf_8 | 888067d692a8d486bbb999fcfaa52bf7 | function h=ellipsebnd(varargin)
% ELLIPSEBND - plot an error ellipse, or ellipsoid, defining confidence region
% ELLIPSEBND(C22) - Given a 2x2 covariance matrix, plot the
% associated error ellipse, at the origin. It returns a graphics handle
% of the ellipse that was drawn.
%
% ELLIPSEBND(C33) - Give... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | reggcv.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/private/reggcv.m | 4,183 | utf_8 | 96e102b790fbfa5f01c26445d60a36fc | function reg_min=reggcv(Y,Vn,Sn,method,show)
%REGGCV Compute regularization using generalized cross validation.
% Determine the regularization parameter for ordkernel
% using Generalized Cross-Validation (GCV). It plots the
% GCV function as a function of the regularization
% ... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | jacobianest.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/private/jacobianest.m | 5,842 | utf_8 | 46460a027f39b6c92c0f0b818d2e1721 | function [jac,err] = jacobianest(fun,x0)
% gradest: estimate of the Jacobian matrix of a vector valued function of n variables
% usage: [jac,err] = jacobianest(fun,x0)
%
%
% arguments: (input)
% fun - (vector valued) analytical function to differentiate.
% fun must be a function of the vector or array x0.
%
%... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | spgl1.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/private/spgl1.m | 30,253 | utf_8 | 03d7576dbae19e8aa54fe160c192f10a | function [x,r,g,info] = spgl1( A, b, tau, sigma, x, options )
%SPGL1 Solve basis pursuit, basis pursuit denoise, and LASSO
%
% [x, r, g, info] = spgl1(A, b, tau, sigma, x0, options)
%
% ---------------------------------------------------------------------
% Solve the basis pursuit denoise (BPDN) problem
%
% (BPDN) m... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | exls.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/private/exls.m | 9,640 | utf_8 | 41bd2c44a083af85a79ab91715bffc82 | function [VARMAX,Z] = exls(Y,Z,p,r,method,tol,reg,opt,VARMAX0)
%EXLS Extended Least Squares
% [VARMAX,Z] = EXLS(Y,Z,P,R,METHOD,TOL,REG,OPT,VARMAX0) computes the
% extended least squares regression for the VARMAX estimation problem
% using recursive least squares. This function is intended for DORDVARMAX.
% ... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | oneProjectorMex.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/private/oneProjectorMex.m | 3,797 | utf_8 | df5afe507062bc6b713674d862bf73cd | function [x, itn] = oneProjectorMex(b,d,tau)
% [x, itn] = oneProjectorMex(b,d,tau)
% Return the orthogonal projection of the vector b >=0 onto the
% (weighted) L1 ball. In case vector d is specified, matrix D is
% defined as diag(d), otherwise the identity matrix is used.
%
% On exit,
% x solves minimize ||b-x... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | lsqr.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/private/lsqr.m | 11,849 | utf_8 | b60925c5944249161e00049c67d30868 | function [ x, istop, itn, r1norm, r2norm, anorm, acond, arnorm, xnorm, var ]...
= lsqr( m, n, A, b, damp, atol, btol, conlim, itnlim, show )
%
% [ x, istop, itn, r1norm, r2norm, anorm, acond, arnorm, xnorm, var ]...
% = lsqr( m, n, A, b, damp, atol, btol, conlim, itnlim, show );
%
% LSQR solves Ax = b or mi... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | reglcurve.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/private/reglcurve.m | 9,669 | utf_8 | 4ba1982fb3c44a326be1ff4bec03edef | function reg_c=reglcurve(Y,Vn,Sn,method,show)
%REGLCURVE Compute regularization using L-curve criterion.
% Determine the regularization parameter for ordkernel
% using L-curve criterion. It plots the L-curve and
% find its corner. If the regularization method is
% 'tsvd' t... |
github | TUDelft-DataDrivenControl/Predictor-Based-Subspace-IDentification-toolbox-master | kernmatrix.m | .m | Predictor-Based-Subspace-IDentification-toolbox-master/extra/backwards/private/kernmatrix.m | 3,842 | utf_8 | f5ac9d877d0e03e735508333491c3fcb | function omega = kernmatrix(Xtrain,kernel_type,kernel_pars,Xt)
%KERNMATRIX Construct the positive (semi-) definite and symmetric kernel matrix
%
% Omega = kernel_matrix(X, kernel_fct, sig2)
%
% This matrix should be positive definite if the kernel function
% satisfies the Mercer condition. Construct the kernel value... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.