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 | gmaze/gmaze_legacy-master | maxi.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/maxi.m | 1,209 | utf_8 | e4756d2c3e13ff43cf9632cbab4ff9a4 | % maxi Maximize figure size
%
% [] = maxi(gcf)
%
% This function set a figure size to full screen
%
%
% Created: 2008-11-05.
% Copyright (c) 2008 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lice... |
github | gmaze/gmaze_legacy-master | pllist_gui.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/pllist_gui.m | 7,750 | utf_8 | 74995799708b4a3d456cdc48f2382bb7 | % pllist_gui H1LINE
%
% [] = pllist_gui()
%
% HELPTEXT
%
% Created: 2009-11-22.
% Copyright (c) 2009, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provi... |
github | gmaze/gmaze_legacy-master | utiltool.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/utiltool.m | 1,618 | utf_8 | 7422388d04d80f5e49c14eb819e40052 | % utiltool Create a standalone toolbar with my personnal buttons
%
% [] = utiltool()
%
% Create a standalone toolbar with my personnal buttons from mytoolbar
%
%
% Created: 2008-11-19.
% Copyright (c) 2008 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and... |
github | gmaze/gmaze_legacy-master | newfig.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/newfig.m | 1,825 | utf_8 | 90017df78fa0c3349458f3c1842c1a2d | % newfig Open a new figure
%
% [] = newfig()
%
% Open a new figure.
%
% Created: 2011-02-03.
% Copyright (c) 2011, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or without
% modification, are pe... |
github | gmaze/gmaze_legacy-master | command2fig.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/command2fig.m | 2,055 | utf_8 | 99dc9ee2f3faaf5866cdcddea5a301ef | % command2fig Print on a figure the command window output of one variable
%
% [] = command2fig(VARIABLE)
%
% Print on a figure the command window output of one variable.
% This is useful to insert text in a multiple pages pdf document generated
% using figs2pdf.
%
%
% Created: 2011-03-15.
% Copyright (c) 2011, Guillau... |
github | gmaze/gmaze_legacy-master | testicon.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/testicon.m | 2,547 | utf_8 | 4539b744408197b56b5056618654dbb3 | % testicon H1LINE
%
% [] = testicon()
%
% HELPTEXT
%
% Created: 2010-05-30.
% Copyright (c) 2010, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided ... |
github | gmaze/gmaze_legacy-master | hidemenu.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/hidemenu.m | 1,016 | utf_8 | 8aa4747459d8fe3cf0cc1cdcd21ec770 | % hidemenu Hide the menubar of a figure
%
% [] = hidemenu([gcf])
%
% Hide the menubar of the figure with handle
% given by gcf or the current one.
%
%
% Created: 2009-04-27.
% Copyright (c) 2009 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify ... |
github | gmaze/gmaze_legacy-master | videotimeline.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/videotimeline.m | 1,805 | utf_8 | 9aaec8f273cc7da2732fb2973936fe67 | % VIDEOTIMELINE Add a video timeline to a plot
%
% [] = videotimeline(TIME,IT,POSITION)
%
% TIME contains all the time line serie as: (1:nt,'YYYYMMDDHHMM')
% IT contains the current time
% POSITION = 't'
%
% Copyright (c) 2004 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can... |
github | gmaze/gmaze_legacy-master | mytoolbar.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/mytoolbar.m | 1,196 | utf_8 | 7d414237162d3e8045d53241eef396ad | % mytoolbar Add my personnal buttons to the figure toolbar
%
% [] = mytoolbar()
%
% Add mailtool, sgetool and graphtool to the figure toolbar.
%
%
% Created: 2008-11-18.
% Copyright (c) 2008 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it u... |
github | gmaze/gmaze_legacy-master | mini.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/mini.m | 1,344 | utf_8 | b5579a0f76bd2acb4e1f98db431bb3c6 | % mini Reduce figure size to a mini standard
%
% [] = mini(gcf)
%
% This function dramatically reduces a figure size
% (Note that it removes the footnote if it exists)
%
% Copyright (c) 2007 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it u... |
github | gmaze/gmaze_legacy-master | stickynote.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/stickynote.m | 4,320 | utf_8 | 55c29fa8b9d00bd98fd968937852e423 | % stickynote H1LINE
%
% [] = stickynote()
%
% HELPTEXT
%
% Created: 2011-03-04.
% Copyright (c) 2011, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provi... |
github | gmaze/gmaze_legacy-master | footnote.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/footnote.m | 5,813 | utf_8 | 8995fe97dab0bb845e5e4e6f46bcb249 | % FOOTNOTE Add a footnote to a plot
%
% h = footnote([TEXT])
%
% Add a footnote to a plot.
% By default, add the date with the path
% if TEXT='del', just remove the existing footnote
%
% The text object has the tag: 'footnotetext'
%
% Example:
% footnote(footstamp(2,[mfilename('fullpath') '.m']));
%
% See also:
% foot... |
github | gmaze/gmaze_legacy-master | exportj.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/exportj.m | 4,548 | utf_8 | 4b724869d0d49026ac3c920932acd48d | % EXPORTJ Export a figure to A4 color PNG format
%
% EXPORTJ(GCF,[ORIENTATION,FILE,KEEPFOOTNOTE])
%
% Export a figure GCF to A4 color png format
% Default output file is: fig.png in current directory
% or specify it into FILE (extension .png is automatic).
% ORIENTATION is an optionnal parameter:
% ... |
github | gmaze/gmaze_legacy-master | exports.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/exports.m | 5,088 | utf_8 | 6fa44448e31889ec1c9e9a519e77c381 | % exports Export a figure to A4 color PDF format
%
% exports(GCF,[ORIENTATION,FILE,KEEPFOOTNOTE])
%
% Export a figure GCF to A4 color eps format
% Default output file is: fig.eps in current directory
% or specify it into FILE (extension .eps is automatic).
% ORIENTATION is an optionnal parameter:
% ORIENT... |
github | gmaze/gmaze_legacy-master | fftall.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/fftall.m | 2,163 | utf_8 | 661e92142ce260754d628fedd937c8ae | % fftall Open a new figure with portrait orientation
%
% [] = fftall()
%
% Open a new figure with portrait orientation.
%
% This is a simple shortcut for:
% >> figure
% >> figure_tall
%
% Created: 2012-12-04.
% Copyright (c) 2012, Guillaume Maze (Ifremer, Laboratoire de Physique des Oceans).
% All rights reserved.
% ... |
github | gmaze/gmaze_legacy-master | exportp.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/exportp.m | 10,006 | utf_8 | 57e254122b7b51f91e62434cd395fc7f | % exportp Export a figure to A4 color PDF format
%
% exportp(GCF,[ORIENTATION,FILE,KEEPFOOTNOTE])
%
% Export a figure GCF to A4 color pdf format
% Default output file is: 'fig.pdf' in current directory.
%
% ORIENTATION: Set the orientation of the figure.
% ORIENTATION=0 : A4 Portrait (default)
% ORIE... |
github | gmaze/gmaze_legacy-master | expt.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/expt.m | 2,501 | utf_8 | 41f3ee9f7dd26d56bc0e1acb47b444d9 | % expt Export a figure to pdf format in a temporary folder/file
%
% [FILENAME] = expt([GCF,ORIENTATION,KEEPFOOTNOTE])
%
% Export a figure to pdf format in a temporary folder/file.
% Using the exportp function print a figure into the folder:
% ./tmp/fig_DATE.pdf
% where DATE is the exact date of printing.
%
% Created: ... |
github | gmaze/gmaze_legacy-master | fnote.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/fnote.m | 10,253 | utf_8 | aa5be71bf5d62bb2a0dc3a57b9a99613 | % fnote Add a text note box to a figure
%
% [] = fnote()
%
% Add a text note box to a figure
%
% Created: 2011-02-18.
% Copyright (c) 2011, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or witho... |
github | gmaze/gmaze_legacy-master | figure_setcolor.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/figure_setcolor.m | 2,000 | utf_8 | 2e40d021f99cde7aa6337d4d381002db | % figure_setcolor Change background color of a set of figures
%
% [] = figure_setcolor(LIST,COLOR)
% [] = figure_setcolor(COLOR)
%
% Change background color of a set of figures
%
%
% Created: 2011-02-08.
% Copyright (c) 2011, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.gu... |
github | gmaze/gmaze_legacy-master | figure_land.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/figure_land.m | 1,263 | utf_8 | c4d76d258a616c7ddd1284a7129d3a82 | % FIGURE_LAND White background landscape figure
%
% figure_land([H])
%
% Set current figure, or with handle H, to a landscape format.
%
% Copyright (c) 2004 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it under the terms of the GNU Genera... |
github | gmaze/gmaze_legacy-master | ffland.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/ffland.m | 2,088 | utf_8 | 8d9a97245c4019388f2e0767230641a5 | % ffland Open a new figure with landscape orientation
%
% [] = ffland()
%
% Open a new figure with landscape orientation.
%
% This is a simple shortcut for:
% >> figure
% >> figure_land
%
% Created: 2012-12-04.
% Copyright (c) 2012, Guillaume Maze (Ifremer, Laboratoire de Physique des Oceans).
% All rights reserved.
... |
github | gmaze/gmaze_legacy-master | figures2htm.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/figures2htm.m | 4,189 | utf_8 | b99a3f0fa82070f95c56ab832c6ba1d4 | % figures2htm Writes all open figures to .png files and integrates them in a html file
% or
% figures2htm(reportdir,basename)
%
% 1) Writes all open figures to .png files and integrates them in a html file
% which opens the figure to full screen if clicked. If the figure has a
% name rather than a number, this wi... |
github | gmaze/gmaze_legacy-master | load_icons.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/load_icons.m | 2,568 | utf_8 | 9b548a3981a1d7128f7a4d43b82c6e58 | % load_icons Load CDdata of an predefined icon
%
% CDdata = load_icons(IICON)
%
% Load CDdata of an predefined icon
%
% 1 Random
% 2 Google lab with white background
% 3 DEATH
% 4 Same as Google mail
% 5 Another mail icon (blue)
% 6: Green doc
% 7: Rocks logo for SGE
%
%
% Created: 2008-11-20.
% Copyright (c) 20... |
github | gmaze/gmaze_legacy-master | reexportp.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/reexportp.m | 2,663 | utf_8 | dadde89bd0569bf33f72ae1c637a6b6c | % reexportp Re-export a figure in pdf using app datas
%
% [] = reexportp([H])
%
% Re-export a figure in pdf using app datas (orientation and file name).
% H is the figure's handle, by default the current figure is used.
%
% See also: exportp
%
% Rev. by Guillaume Maze on 2011-03-29: Default figure is the current one
%... |
github | gmaze/gmaze_legacy-master | export.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/export.m | 3,356 | utf_8 | c970729750fa6ff7d5449a50f27b0bb7 | % EXPORT Export a figure to A4 color EPS format
%
% EXPORT(GCF,[ORIENTATION,FILE])
%
% Export a figure GCF to A4 color eps format
% Default output file is: fig.eps in current directory
% or specify it into FILE (extension .eps is automatic).
% ORIENTATION is an optionnal parameter:
% ORIENTATION=0... |
github | gmaze/gmaze_legacy-master | tall.m | .m | gmaze_legacy-master/matlab/codes/graphicxFigures/tall.m | 1,979 | utf_8 | 2cccb6b2f48a044475245059ca2bac80 | % tall Increase figure size to a large portrait format
%
% [] = tall([GCF])
%
% Increase figure size to a large portrait format
%
% Created: 2009-12-30.
% Copyright (c) 2009, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in sou... |
github | gmaze/gmaze_legacy-master | system.m | .m | gmaze_legacy-master/matlab/codes/overwrite/system.m | 2,149 | utf_8 | 03a63edc182922927dd22df673deea76 | % system Fix issue with missing .cshrc
%
% [] = system()
%
% Fix issue with missing .cshrc
%
% Created: 2011-01-29.
% Copyright (c) 2011, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or without... |
github | gmaze/gmaze_legacy-master | clf.m | .m | gmaze_legacy-master/matlab/codes/overwrite/clf.m | 1,920 | utf_8 | 415c550d23b7155cb1f0dafc86f2a05d | % clf Clear current figure
%
% clf([FIG])
%
% Clear current figure by deleting all axes objects.
%
% Created: 2011-02-03.
% Copyright (c) 2011, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or w... |
github | gmaze/gmaze_legacy-master | title.m | .m | gmaze_legacy-master/matlab/codes/overwrite/title.m | 2,495 | utf_8 | 6bc6a4f1fe0c0b32e276071ffaac591c | % title Custom Graph title
%
% TITLE('text') adds text at the top of the current axis.
%
% TITLE('text','Property1',PropertyValue1,'Property2',PropertyValue2,...)
% sets the values of the specified properties of the title.
%
% TITLE(AX,...) adds the title to the specified axes.
%
% H = TITLE(...) returns the ... |
github | gmaze/gmaze_legacy-master | refresh.m | .m | gmaze_legacy-master/matlab/codes/overwrite/refresh.m | 1,129 | utf_8 | 691d07d88eca9cf8e88d84bc8978346d | % REFRESH Refresh figure
%
% REFRESH causes the current figure window to be redrawn.
% REFRESH(FIG) causes the figure FIG to be redrawn.
% D. Thomas 5/26/93
% Copyright 1984-2005 The MathWorks, Inc.
% $Revision: 5.11.4.4 $ $Date: 2005/12/15 20:54:35 $
function refresh(h)
if nargin==1,
objtype = ''... |
github | gmaze/gmaze_legacy-master | corrcoef.m | .m | gmaze_legacy-master/matlab/codes/overwrite/corrcoef.m | 7,969 | utf_8 | 18d06e690d09457676f128e175f8b240 | % CORRCOEF Correlation coefficients.
% R=CORRCOEF(X) calculates a matrix R of correlation coefficients for
% an array X, in which each row is an observation and each column is a
% variable.
%
% R=CORRCOEF(X,Y), where X and Y are column vectors, is the same as
% R=CORRCOEF([X Y]).
%
% If C is the ... |
github | gmaze/gmaze_legacy-master | figure.m | .m | gmaze_legacy-master/matlab/codes/overwrite/figure.m | 2,611 | utf_8 | 90ae02c6ece926e24f4c301128d57bf2 | % FIGURE Create customized figure window
%
% FIGURE, by itself, creates a new figure window, and returns
% its handle.
%
% FIGURE(H) makes H the current figure, forces it to become visible,
% and raises it above all other figures on the screen. If Figure H
% does not exist, and H is an integer, a new ... |
github | gmaze/gmaze_legacy-master | ginput.m | .m | gmaze_legacy-master/matlab/codes/overwrite/ginput.m | 6,820 | utf_8 | 91f7e5431c0e95fa02c3fb44bf957121 | function [out1,out2,out3] = ginput(arg1)
%GINPUT Graphical input from mouse.
% [X,Y] = GINPUT(N) gets N points from the current axes and returns
% the X- and Y-coordinates in length N vectors X and Y. The cursor
% can be positioned using a mouse (or by using the Arrow Keys on some
% systems). Data points ar... |
github | gmaze/gmaze_legacy-master | fftmspec.m | .m | gmaze_legacy-master/matlab/codes/overwrite/fftmspec.m | 2,111 | UNKNOWN | 37394690568377f591872f4c4b98a0fe | % FFTMSPEC Module Spectra of the Fourier Transform
%
% FFTMSPEC(XT,T) Plots the signal XT versus time T and the absolute value of the the discrete
% Fourier transform (DFT) of the signal vector XT versus the a frequency vector F.
%
% [XFM,F] = FFTMSPEC(XT,T) Returns the Fourier Transform of XT and the frequency r... |
github | gmaze/gmaze_legacy-master | drawbox.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/drawbox.m | 1,289 | utf_8 | 4b23a60dd68a18dfbcdca2a4b778ca14 | % DRAWBOX Draw a rectangular box
%
% H = DRAWBOX(NW,SE,[OPTION])
%
% Draw a box with upper-left corner coordinates
% given by NW(ix,iy) and lower-right corner coord. by SE(ix,iy)
% OPTION is any thing from the LINE function options
% H is handle of the plotted box
%
% Created by Guillaume Maze on 2008-10-14.
% Copyrigh... |
github | gmaze/gmaze_legacy-master | cs2st.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/cs2st.m | 1,646 | utf_8 | 777c7cd7c2b23f846110bde86c80e0ed | % cs2st Transform contour matrix into output from streamline
%
% st = cs2st(cs)
%
% Transfrom the contour matrix is given by contourc into a
% matrix as given by streamline.
%
%
% Created: 2008-12-10.
% Copyright (c) 2008 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can red... |
github | gmaze/gmaze_legacy-master | ptable.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/ptable.m | 2,600 | utf_8 | 2841c94cec297441325ba7077a3e8199 | % PTABLE Creates non uniform subplot handles
%
% SUBPLOT_HANDLE = ptable(TSIZE,PCOORD)
%
% This function creates subplot handles according to
% TSIZE and PCOORD.
% TSIZE(2) is the underlying TABLE of subplots: TSIZE(1)
% is the number of lines, TSIZE(2) the number of rows
% PCOORD(:,2) indicates the coordinates of the ... |
github | gmaze/gmaze_legacy-master | fitgauss.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/fitgauss.m | 4,081 | utf_8 | 1af6f8b170217fc2ee425057caa0db5c | % fitgauss Fit a Gaussian to a distribution plot
%
% [H,MOM] = fitgauss([MEAN,STD])
%
% Plot a gaussian curve on a distribution plot.
%
% Inputs:
% MEAN, STD (optional): mean and standar deviation of the distribution
% If not specified, they are computed from the distribution and give
% back into output MOM
%
% Outp... |
github | gmaze/gmaze_legacy-master | iplot.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/iplot.m | 3,265 | utf_8 | fbd7a9ed751b13543d2f36b50e0a4b8a | function [p jSlider] = iplot(x,y,fct,v0,rg,varargin)
% iplot Create an interactive plot with a slider
%
% [p js] = iplot(x,fct,v0,rg)
%
% Inputs:
%
% Outputs:
%
% Eg:
% [NAO,t] = dwn_nao; % Get NAO monthly timeseries
% figure; hold on
% plot(t,NAO,'color',[1 1 1]/2);datetick('x');hline
% iplot(t,NAO,@(y,c)nanstan(sm... |
github | gmaze/gmaze_legacy-master | move_axes.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/move_axes.m | 4,791 | utf_8 | 7ac4ff88583b907c60e3a6aed88a9691 | %move_axes Move an axis (plot) within a figure
%
% [] = move_axes(gc,[TYPE,PARAM])
%
% Move the axes with handle gc according to TYPE and PARAM.
%
% TYPE:
% 'horizontalshift': Move the axis horizontally by an amount
% given by PARAM.
% 'verticalshift': Move the axis vertically by an amount
% given by PARAM.
%
% 'exp... |
github | gmaze/gmaze_legacy-master | vline.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/vline.m | 2,482 | utf_8 | 032331174884686622dfe1fb9bb359ca | % vline Draw a vertical line on a plot
%
% h = vline([X,STYLE])
%
% Draw a vertical line on the current plot
%
% Inputs:
% X: Intersection of the line with the x-axis
% By default it is set to: x=0
% STYLE: is any pair of properties for a line object
% Default is plain black
%
% Outputs:
% h: line handle
%
% See... |
github | gmaze/gmaze_legacy-master | unifx.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/unifx.m | 1,896 | utf_8 | 872c28b2364643b88b0111e2ef12b118 | % unifx Uniforms x-axis limits on different figures
%
% [] = unifx(FLIST,[xl])
%
% Rev. by Guillaume Maze on 2013-11-06: Do no include colormap anymore
% Created: 2008-11-06.
% Copyright (c) 2008 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify... |
github | gmaze/gmaze_legacy-master | xanom.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/xanom.m | 2,123 | utf_8 | ed616feb8ba7d251d3d72b69f8754949 | % xanom Make x-axis centered around 0
%
% [] = xanom([gca])
%
% Make x-axis centered around 0
%
% Created: 2011-01-26.
% Copyright (c) 2011, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or with... |
github | gmaze/gmaze_legacy-master | unify.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/unify.m | 1,896 | utf_8 | 045a43de5ea93b7fdfde0d11f1b7824f | % unify Uniforms y-axis limits on different figures
%
% [] = unify(FLIST,[YL])
%
% Rev. by Guillaume Maze on 2013-11-06: Do no include colormap anymore
% Created: 2008-11-05.
% Copyright (c) 2008 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify... |
github | gmaze/gmaze_legacy-master | twodcumsum.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/twodcumsum.m | 3,113 | utf_8 | f8840529dcc38c8036b3e79c2c269679 | % TWODCUMSUM Plot a 2D field together with its cumsum in both directions
%
% [sb,hl,gca] = twodcumsum(X,Y,FIELD(Y,X),[SHOW COLORBAR 0/1,CMAP,CAXIS])
%
% sb = [sb1 sb2 sb3]
% hl = [tt xl yl]
%
% Copyright (c) 2004 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute ... |
github | gmaze/gmaze_legacy-master | addarrows.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/addarrows.m | 6,916 | utf_8 | 4a70dec43fa453dd03ba8014d61de6b2 | % addarrows Add arrows along a contour handle
%
% [AR TX TY] = addarrows(H,[OPTIONS_PAIRS])
%
% Add arrows along a contour handle H.
%
% Options:
% arrowgap = 10; % Nb of points between arrows
% arrowangle = 10; % Arrow angle
% arrowlength = 1; % Arrow length
% arrowsharpness = 1; % How sharp is the arrow ? (1 fo... |
github | gmaze/gmaze_legacy-master | ahline.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/ahline.m | 3,450 | utf_8 | fa8747a8a544116b5b002a6e985a2d0e | % ahline Draw a horizontal line on a plot and print value on the y-axis
%
% [h,t] = ahline([Y,STYLE])
%
% Draw a horizontal line on a plot and print value on the y-axis.
% Style apply to both the line and the text.
%
% Inputs:
% Y: intersection of the line with the y-axis
% By default it is set to: y=0
% STYLE: is a... |
github | gmaze/gmaze_legacy-master | viz3d.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/viz3d.m | 8,981 | windows_1250 | f83ca3b91539ae97c3ace391f7dd2822 | function varargout = viz3d(x,y,z,data,slice)
% viz3d 3D field exploration plot
%
% viz3d(x,y,z,data,slice)
% with
% data(x,y,z)
% slice = [0 0 10] is the slice to plot as reference
%
%
%
% EG:
%
% See Also:
%
% Copyright (c) 2016, Guillaume Maze (Ifremer, Laboratoire d'Océanographie Physique et Spatiale).
% Created... |
github | gmaze/gmaze_legacy-master | thematrix.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/thematrix.m | 1,563 | utf_8 | 1f5d60e4993140f175bd1b3aed9de435 | % THEMATRIX Animate a 3D plot by rotating around
%
% [] = thematrix(dAZ,nrevol)
%
% This function make a motion camera effect
% on the current 3D figure
% This "a la" MATRIX(c) camera effect makes the object
% to spin around it vertical axis.
%
% Default setting:
% dAZ = 5;
% nrevol =1;
%
% Help: If the 3D object sh... |
github | gmaze/gmaze_legacy-master | suptitle.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/suptitle.m | 3,346 | utf_8 | 7e680489983f1d00f7e0655babb60b11 | % SUPTITLE Puts a title above all subplots.
% SUPTITLE('text') adds text to the top of the figure
% above all subplots (a "super title"). Use this function
% after all subplot commands.
%
% Warning: If the figure or axis units are non-default, this
% will break.
%
% G. Maze on 2011-03-29 said: Suptitle is tagged as: 's... |
github | gmaze/gmaze_legacy-master | sublist.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/sublist.m | 1,694 | utf_8 | 55f34c61fb884ee1a958fadcdd329a19 | % sublist Subplot indices for portrait/landscape 2 ranks loops plot
%
% plist = sublist(n1,n2,orient)
%
% Inputs:
% n1,n2: two integers
% orient can be:
% 'portrait' or 1
% 'landscape' or 0
% Outputs:
% plist is n1*n2 table of subplot indices
%
% Note that Portrait/landscape reference is for nv > ns
%
% Exampe:
% ... |
github | gmaze/gmaze_legacy-master | dashneg.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/dashneg.m | 1,757 | utf_8 | f4fae25e257c9042f1c84589ba3f78d1 | % DASHNEG Make dashed negative contours
%
% DASHNEG(h)
%
% Change linestyle of h for negative values
% to dashed.
%
%
% Copyright (c) 2008 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as ... |
github | gmaze/gmaze_legacy-master | cleancont.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/cleancont.m | 849 | utf_8 | 031bc5e8b1a9b2931c1be7b76d99e505 | % CLEANCONT Update color for m_contourf plots
%
% Copyright (c) 2008 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the Li... |
github | gmaze/gmaze_legacy-master | linerr.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/linerr.m | 2,981 | utf_8 | e67a1b530cb51d0a86b000097311e61d | % LINERR Plot a line whose thickness represents error bars (using patch)
%
% P = LINERR(TIM,VAL,ERR,[C]) plot the timeserie VAL(TIM)+/-ERR(TIM)
% as a patch centered on VAL(TIM)and whose thickness is the error bar
% ERR(TIM). C is the color of the patch. By default it is set to gray.
%
% [P PL] = LINERR(TIM,VAL,ERR,... |
github | gmaze/gmaze_legacy-master | hline.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/hline.m | 2,485 | utf_8 | b66fa1c6864472de507acaf772ffe8c9 | % hline Draw a horizontal line on a plot
%
% h = hline(Y,[STYLE])
%
% Draw a horizontal line on the current plot
%
% Inputs:
% Y: intersection of the line with the y-axis
% By default it is set to: y=0
% STYLE: is any pair of properties for a line object
% Default is plain black
%
% Outputs:
% h: line handle
%
% ... |
github | gmaze/gmaze_legacy-master | outerbox.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/outerbox.m | 1,957 | utf_8 | a06f72b0a4d0325dab4fe8770620c681 | % outerbox Plot a box around a plot
%
% [AX] = outerbox(GCA)
%
% Plot box(es) around plot(s) handle(s) given by GCA
%
% Created: 2010-07-12.
% Copyright (c) 2010, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and bina... |
github | gmaze/gmaze_legacy-master | boldnul.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/boldnul.m | 2,439 | utf_8 | f00e9d70912891467e72a3c082f72b69 | % BOLDNUL Make null contours line style dashed
%
% BOLDNUL(h,[STYLE])
%
% Change linestyle of h for null values
% to bold (double the current linewdith)
%
% Copyright (c) 2010, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
%
% Redistribution and use in source and binary forms, with or w... |
github | gmaze/gmaze_legacy-master | patcharrow.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/patcharrow.m | 3,430 | utf_8 | 42c486163b439eedd18ca67502e4887b | % patcharrow Create a polygon with an arrow for annotation
%
% [h] = patcharrow(height,width,[OPTIONS])
% Add an arrow to the current axis with tag 'annotationBIGarrow'.
%
% [px,py] = patcharrow(height,width,[OPTIONS])
% Create a polygon with an arrow for annotation.
%
% OPTIONS with default values:
% Arrow base posit... |
github | gmaze/gmaze_legacy-master | yanom.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/yanom.m | 2,123 | utf_8 | 6e8805b4b1cff107fd9249e120a3f8d0 | % yanom Make y-axis centered around 0
%
% [] = yanom([gca])
%
% Make y-axis centered around 0
%
% Created: 2010-12-15.
% Copyright (c) 2010, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or with... |
github | gmaze/gmaze_legacy-master | mapclean.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/mapclean.m | 1,845 | utf_8 | 2fded2ff4b00058a29a6795b9a4b2a23 | % MAPCLEAN Uniform plots and colorbars
%
% MAPCLEAN(CPLOT,CBAR)
%
% This function makes uniformed subplots (handles CPLOT)
% and their vertical colorbars (handles CBAR)
%
% Copyright (c) 2007 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it ... |
github | gmaze/gmaze_legacy-master | twodmean.m | .m | gmaze_legacy-master/matlab/codes/graphicxPlots/twodmean.m | 3,375 | utf_8 | 80eee8d7891f60d1ee3ff51f41494ff2 | % TWODMEAN Plot a 2D field together with its means in both directions
%
% [sb,hl,gca] = twodmean(X,Y,FIELD(Y,X),[SHOW COLORBAR 0/1,CMAP,CAXIS])
%
% sb = [sb1 sb2 sb3]
% hl = [tt xl yl]
%
% Copyright (c) 2004 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it an... |
github | gmaze/gmaze_legacy-master | m2diag.m | .m | gmaze_legacy-master/matlab/codes/matrix/m2diag.m | 2,046 | utf_8 | adde7bb83b76c9ce69c433eb296c1080 | % m2diag Transform a 1 dimensional matrix to a square one with elements on the diagonal
%
% C = m2diag(C)
%
% Transform the matrix C(1,N) or C(N,1) to a square matrix
% of dimensions NxN with elements from C on the diagonal
%
% Example:
% C = [1 ; 2 ; 4 ; 5]
% m2diag(C)
%
% See also:
% m2cols
%
% Created: 2010-06-17.... |
github | gmaze/gmaze_legacy-master | findp.m | .m | gmaze_legacy-master/matlab/codes/matrix/findp.m | 1,359 | utf_8 | bfb550f41e2ccc02bff369650f33dfa5 | % FINDP Find the p power of 10 of a number
%
% p = FINDP(X)
% Find p power of 10 of X
%
% Eg:
% findp(4345134) = 6
% findp(1e12) = 12
%
% Copyright (c) 2004 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it under the terms of the... |
github | gmaze/gmaze_legacy-master | nansummap.m | .m | gmaze_legacy-master/matlab/codes/matrix/nansummap.m | 1,922 | utf_8 | f89b94ff21b1a209ccbd32e56ab2208e | % nansummap Multidimensional nansum
%
% C = nansummap(C1,C2)
%
% C1(NY,NX) and C2(NY,NX)
%
% Created: 2010-08-19.
% Copyright (c) 2010, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or without
%... |
github | gmaze/gmaze_legacy-master | rgb2web.m | .m | gmaze_legacy-master/matlab/codes/matrix/rgb2web.m | 1,964 | utf_8 | 71c603cb54f03263a08a5092c83bd459 | % rgb2web Convert an rgb colormap map to a javascript array of webcolor strings.
%
% tbl = rgb2web(cmap)
%
% Convert an rgb colormap map to a javascript array of webcolor strings.
%
% Created: 2011-12-05.
% Copyright (c) 2011, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.g... |
github | gmaze/gmaze_legacy-master | rotatepolygon.m | .m | gmaze_legacy-master/matlab/codes/matrix/rotatepolygon.m | 2,198 | utf_8 | ef4fba48ef8a87feca27683d86bf343c | % rotatepolygon H1LINE
%
% [PX PY] = rotatepolygon(px,py,alpha,[X0,Y0])
%
% HELPTEXT
%
% Created: 2010-08-25.
% Copyright (c) 2010, Guillaume Maze (Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or without
% mod... |
github | gmaze/gmaze_legacy-master | curvearea.m | .m | gmaze_legacy-master/matlab/codes/matrix/curvearea.m | 1,070 | utf_8 | 34a29437ed58b329fc2b1203d987c899 | % CURVEAREA Compute curve area in a crude way
%
% AREA = CURVEAREA(CB,X)
% where CB(NX) define the curve and X the axis
%
% Copyright (c) 2004 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public... |
github | gmaze/gmaze_legacy-master | mywkeep.m | .m | gmaze_legacy-master/matlab/codes/matrix/mywkeep.m | 3,198 | utf_8 | 2ced815ad0284ae93e6aefd516fa7de8 | % MYWKEEP Keep part of a vector or a matrix.
% For a vector:
% Y = WKEEP(X,L,OPT) extracts the vector Y
% from the vector X. The length of Y is L.
% If OPT = 'c' ('l' , 'r', respectively), Y is the central
% (left, right, respectively) part of X.
% Y = WKEEP(X,L,FIRST) returns the vector X(FIRST:FIRST+L-1)... |
github | gmaze/gmaze_legacy-master | assym.m | .m | gmaze_legacy-master/matlab/codes/matrix/assym.m | 1,159 | utf_8 | d790e9b28c44363114bc71cb59ac683b | % ASSYM Compute sym. or assym. component of 2D field
%
% D = ASSYM(C,[DIR])
%
% Compute the zonaly (dim. 1) symetric or assymetric component
% of the field C(lon,lat)
% DIR = 1 (Default) : Assymetric component of C
% DIR = 2 : Zonal mean of C
%
% Copyright (c) 2008 Guillaume Maze.
% http://codes.guillaumemaze.org
%
%... |
github | gmaze/gmaze_legacy-master | m2cols.m | .m | gmaze_legacy-master/matlab/codes/matrix/m2cols.m | 2,050 | utf_8 | 6199b7664800f359ac3ed5e59f361b57 | % m2cols Transform a 1 dimensional matrix to a square one with elements on columns
%
% C = m2cols(C)
%
% Transform the matrix C(1,N) or C(N,1) to a square matrix
% of dimensions NxN with elements from C on each of the columns.
%
% Example:
% C = [1 ; 2 ; 4 ; 5]
% m2diag(C)
%
% See also:
% m2diag
%
% Created: 2010-09-... |
github | gmaze/gmaze_legacy-master | duplicate.m | .m | gmaze_legacy-master/matlab/codes/matrix/duplicate.m | 2,464 | utf_8 | 13210e3ed22b6e6bbfae6dec7d3fc4c9 | % duplicate Find duplicate values among a 1D table
%
% [Vdup Idup] = duplicate(C,[PREC])
%
% Find duplicate values among a 1D table, ie identify values among
% C which are similar (to the approximate precisions PREC), give them back
% in Vdup and their occurences in C in Idup.
%
% Eg:
% C = [1 3 2 2 3 7];
% [Vdup Idup]... |
github | gmaze/gmaze_legacy-master | dispt.m | .m | gmaze_legacy-master/matlab/codes/matrix/dispt.m | 11,275 | utf_8 | 27f72bb8ebbad790b18cf926831e71c3 | % dispt Display a table on prompt
%
% [LINES] = dispt(C,[OPTIONS]);
%
% Custom matrix display on prompt of double matrix C.
%
% OPTIONS are paired like: OPTION_NAME,OPTION_VALUE
%
% List of OPTIONS:
% numform (string): Numerical format used to display values of C.
% Default value: %0.2f
% rowT: Title of rows to appea... |
github | gmaze/gmaze_legacy-master | iseven.m | .m | gmaze_legacy-master/matlab/codes/matrix/iseven.m | 898 | utf_8 | 2aa300899a8df25d413af6669d1c098f | % ISEVEN True for even array, False for odd
%
% ISEVEN(x) return 1 if X is even and 0 otherwise
%
%
% Copyright (c) 2004 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publis... |
github | gmaze/gmaze_legacy-master | dim.m | .m | gmaze_legacy-master/matlab/codes/matrix/dim.m | 961 | utf_8 | ab528e93a29aed7951213494362b6670 | % dim Give the number of dimensions of a field
%
% n = dim(C)
%
% Compute the dimension of C, ie the number of
% dimensions of C
%
%
% Created: 2009-02-24.
% Copyright (c) 2009 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it under the terms... |
github | gmaze/gmaze_legacy-master | isin.m | .m | gmaze_legacy-master/matlab/codes/matrix/isin.m | 2,318 | utf_8 | b9843aca5f5f67fe6c1e43fd99e11a63 | % isin Check if a table contains values of another table
%
% [C,IA,IB] = isin(A,B)
%
% Check if table A contains any values from table B. This is similar
% to 'intersect' for cells but for doubles.
%
% Outputs:
% C: Values of B found in A
% IA: C = A(IA)
% IB: C = B(IB)
%
% Rev. by Guillaume Maze on 2013-01-10: Upda... |
github | gmaze/gmaze_legacy-master | diag_error.m | .m | gmaze_legacy-master/matlab/codes/matrix/diag_error.m | 3,547 | utf_8 | 59489dc308e290a6be5726ea02518bdb | % diag_error Propagate error estimates for misc operators
%
% er = diag_error(typeOP,A,Aer,varargin)
%
% Combine error estimates for misc operators/
%
% Eg:
%
% To compute the error of the sum of elements (A) given
% their errors (Aer):
% er = diag_error('+',A,Aer);
%
% To compute the error of the product of A ele... |
github | gmaze/gmaze_legacy-master | datenumserie_forbins.m | .m | gmaze_legacy-master/matlab/codes/matrix/datenumserie_forbins.m | 2,442 | utf_8 | f210cd7ab61bd9756a958f48dabe57d4 | % datenumserie_forbins H1LINE
%
% [] = datenumserie_forbins()
%
% HELPTEXT
%
% Created: 2013-12-19.
% Copyright (c) 2013, Guillaume Maze (Ifremer, Laboratoire de Physique des Oceans).
% All rights reserved.
% http://codes.guillaumemaze.org
%
% Redistribution and use in source and binary forms, with or without
% modi... |
github | gmaze/gmaze_legacy-master | monthlabs.m | .m | gmaze_legacy-master/matlab/codes/matrix/monthlabs.m | 1,754 | utf_8 | 8b90f4263093445104fd22ac6b05f3cf | % MONTHLABS Get various labels of months
%
% TITLE = MONTHLABS(IMONTHS)
%
% Return a structure TITLE with various ways of
% calling the list of months given by IMONTHS as
% month indices (1 to 12)
%
% Copyright (c) 2008 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redist... |
github | gmaze/gmaze_legacy-master | datenumserie.m | .m | gmaze_legacy-master/matlab/codes/matrix/datenumserie.m | 4,166 | utf_8 | a665ad27e0949fc25fdc1cb9e3a81e91 | % datenumserie Create a time serie with datenum
%
% DTNUM = datenumserie(Y,MO,[D,M,S])
%
% Create a timeseries of datenum: return the serial date
% numbers for corresponding elements of the Y, MO (year, month)
% and eventually D, M or S (day, minutes, seconds).
%
% This function is a fix for the fact that when calling... |
github | gmaze/gmaze_legacy-master | smoother1Ddiff.m | .m | gmaze_legacy-master/matlab/codes/statistics/smoother1Ddiff.m | 3,356 | utf_8 | 7ae6468a6e3adf7773bfc667058d9d9d | % smoother1Ddiff Apply a diffusive smoother on a 1D field
%
% field_out = smoother1Ddiff(field_in,dist_in1);
%
% Apply a diffusive smoother based on Weaver and Courtier, 2001.
% By default, field_in is assumed to be NOT circular. To make it circular, add 1 as thrird argument:
% field_out = smoother1Ddiff(field_in,dist_... |
github | gmaze/gmaze_legacy-master | fitlog.m | .m | gmaze_legacy-master/matlab/codes/statistics/fitlog.m | 2,608 | utf_8 | b59656ddee08f7bf4f78c5f2a0e4c81e | % fitlog Logarithmic least-square curve fitting
%
% [a,b] = fitlog(x,y)
%
% Estimate coefficients a and b so that:
% y = a + b*log(x)
% is optimized in a least-square sense.
%
% Inputs:
% x,y: two series of data points
%
% Outputs:
% a,b: Coefficients of the optimized logarithmic relation between x and y.
%
% Refer... |
github | gmaze/gmaze_legacy-master | getscatter.m | .m | gmaze_legacy-master/matlab/codes/statistics/getscatter.m | 1,550 | utf_8 | 2163ac22d3c742134eab9a5e9adc0d9a | % GETSCATTER Get scatter plot distribution
%
% [P,Paxis] = GETSCATTER(C,dC)
%
% Get the distribution of values in C with
% resolution dC
%
%
% Copyright (c) 2007 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is free software: you can redistribute it and/or modify it under the terms of the GNU Gene... |
github | gmaze/gmaze_legacy-master | trend.m | .m | gmaze_legacy-master/matlab/codes/statistics/trend.m | 1,873 | utf_8 | e4d79ccf6e024febaa531ef1a9395132 | % TREND Find a linear trend from a vector, usually for FFT processing.
% Y = TREND(X) finds the best straight-line fit linear trend from
% the data in vector X and returns it in vector Y. If X is a matrix,
% TREND finds the trend from each column of the matrix.
%
% Y = TREND(X,'constant') finds just the ... |
github | gmaze/gmaze_legacy-master | myrunmean.m | .m | gmaze_legacy-master/matlab/codes/statistics/myrunmean.m | 1,259 | utf_8 | d95b6ccd36946f19a71874fb8ed37fd0 | % MYRUNMEAN Perform running mean on an array
%
% A = myrunmean(a,NF,bool,dirm)
% compute runing mean of a in direction dirm with
% NF mean, i.e at each time step
% A(i) --> mean( a(i-NF/2:i+NF/2) ,dirm )
%
% if bool == 1, A has only the N-NF elemts
% if bool == 0, A is Nan outside and has N elmts
%
% Copyrig... |
github | gmaze/gmaze_legacy-master | WSEdecomp.m | .m | gmaze_legacy-master/matlab/codes/statistics/WSEdecomp.m | 7,547 | utf_8 | 238c8c9bde9c814b00d63ae0b4dd2a0a | % WSEDECOMP Split a signal into its downward/upward propagating and stationnary components
%
% [Sf A FX FT] = WSEdecomp(S,DT,DX,[PERIOD],[WAVELENGTH])
% Split S(SPACE,TIME) into: DW/ST/UP-waves
%
% Split the signal S(SPACE,TIME) into its downward/upward space
% propagating and stationnary components via a 2D Fourier ... |
github | gmaze/gmaze_legacy-master | xtrm.m | .m | gmaze_legacy-master/matlab/codes/statistics/xtrm.m | 1,579 | utf_8 | a3da005ef1c8077899b6e4229c4a7bf9 | % XTRM Find the extreme value of a 2D field (either positive or negative)
%
% [VAL,POS] = xtrm(C)
%
% Find the extreme value VAL of a 2D field C, either positive or negative.
% POS are the indices of VAL into C.
%
% Copyright (c) 2004 Guillaume Maze.
% http://codes.guillaumemaze.org
%
% This program is fr... |
github | gmaze/gmaze_legacy-master | gaussmapping_multi.m | .m | gmaze_legacy-master/matlab/codes/statistics/gaussmapping_multi.m | 7,683 | utf_8 | bc8a9f2fb2d3a1db5745de063ebe7269 | % gaussmapping_multi Map irregular data on the Earth sphere in 3D on a regular grid
%
% vc = gaussmapping_multi(x,y,z,v,xc,yc,zc,sigma_hor,sigma_vert)
%
% Adapted from gaussmapping.m to the use of multivariate gaussians (G. Maze)
%
% Created: 2015-01-29.
% Copyright (c) 2015, Charlene Feucher (Ifremer, Laboratoire de P... |
github | gmaze/gmaze_legacy-master | mypsdchk.m | .m | gmaze_legacy-master/matlab/codes/statistics/mypsdchk.m | 5,052 | utf_8 | f48913d0389d6dd04e9abde2550ed7dd | % MYPSDCHK Helper function for PSD, CSD, COHERE, and TFE.
%
% [msg,nfft,Fs,window,noverlap,p,dflag] = MYPSDCHK(P,x,y) takes the cell
% array P and uses each element as an input argument. Assumes P has
% between 0 and 7 elements which are the arguments to psd, csd, cohere
% or tfe after the x (psd) or x and y... |
github | gmaze/gmaze_legacy-master | nanstan.m | .m | gmaze_legacy-master/matlab/codes/statistics/nanstan.m | 2,254 | utf_8 | d7f32883997ee05366215ffca3aaf603 | % nanstan Return a standardized serie discarding NaNs
%
% X = nanstan(X,[DIM])
%
% Return a standardized serie:
% [X - nanmean(X,DIM)]/nanstd(X,[],DIM)
%
% Mean and std are taken along DIM (1 by default)
%
% See also: nanstan
%
% http://codes.guillaumemaze.org
% Copyright (c) 2013, Guillaume Maze (Ifremer, Laboratoir... |
github | gmaze/gmaze_legacy-master | getcrosscor.m | .m | gmaze_legacy-master/matlab/codes/statistics/getcrosscor.m | 1,956 | utf_8 | 445ea6d40174dc0f977f768749f3978b | % GETCROSSCOR Compute a lagged cross-correlation
%
% [CR LAGS CONFIDENCE95 P] = GETCROSSCOR(X1,X2,T)
%
% Compute the cross-correlation between X1 and X2
% with lags from -T to T. Note that T is in timestep.
%
% What is confident ? Use the p-value
% CRconf = CR;
% CRconf(find(P>0.05)) = ones(1,length(find(P>0.05))).*... |
github | gmaze/gmaze_legacy-master | getpeaks.m | .m | gmaze_legacy-master/matlab/codes/statistics/getpeaks.m | 3,909 | utf_8 | b9d88a9e759d07599dd576a59cce3130 | % getpeaks Determine peak(s) of function X
%
% ipeaks = getpeaks(X,[N])
%
% Determine peaks of function X. N is the 'order' of the peak selection
% criteria (By default, N=2). The 'order' of the peak indicates the number
% of points on each side of the peak to which X(ipeaks) is superior to:
% X(ipeak) is the maximum ... |
github | gmaze/gmaze_legacy-master | mypsd2.m | .m | gmaze_legacy-master/matlab/codes/statistics/mypsd2.m | 4,438 | utf_8 | bbe6c123d1f2a58654316a4062e5f2c4 | % MYPSD2 Power Spectral Density estimate.
%
% mypsd2(x,nfft,Fs,window,noverlap,p,dflag)
%
% PSD has been replaced by SPECTRUM.WELCH. PSD still works but may be
% removed in the future. Use SPECTRUM.WELCH (or its functional form
% PWELCH) instead. Type help SPECTRUM/WELCH for details.
%
% See also SPECTRUM/PSD... |
github | gmaze/gmaze_legacy-master | taylordiag.m | .m | gmaze_legacy-master/matlab/codes/statistics/taylordiag.m | 17,684 | utf_8 | cf05b2c1acc3ac27b5becb07f1fe61aa | % TAYLORDIAG Plot a Taylor Diagram
%
% [hp ht axl] = taylordiag(STDs,RMSs,CORs,['option',value])
%
% Plot a Taylor diagram from statistics of different series.
%
% INPUTS:
% STDs: Standard deviations
% RMSs: Centered Root Mean Square Difference
% CORs: Correlation
%
% Each of these inputs are one dimensional with same... |
github | gmaze/gmaze_legacy-master | lanczos.m | .m | gmaze_legacy-master/matlab/codes/statistics/lanczos.m | 1,754 | utf_8 | 69b8d644c95957620ca15d427635c93e | % lanczos Filtre de lanczos
%
% [y] = lanczos(x,fn,nj)
%
% y : output filtered data
% x : input data
% fn : the cut off frequency (any k/n between 1/n , 0.5)
% nj : (number of points in the filter-1)/2 ; transition width of the
% transfer function is 1/nj.
%
% The filter uses lanczos smoothing of a s... |
github | gmaze/gmaze_legacy-master | wstd.m | .m | gmaze_legacy-master/matlab/codes/statistics/wstd.m | 3,244 | utf_8 | a555c6e379bd60f22e0f57f3719dab34 | % wstd Compute a sample size bias corrected weighted standard deviation
%
% S = wstd(W,X)
%
% Compute the standard deviation of values into array X with weights W.
% S^2 = sum(A) / (V1 - V2/V1)
% with
% A = W*(X-wmean(W,X)).^2
% V1 = sum(W).^2;
% V2 = sum(W^2);
%
% See also: wmean
%
% Ref:
% Rimoldini R.: Weighte... |
github | gmaze/gmaze_legacy-master | lisse.m | .m | gmaze_legacy-master/matlab/codes/statistics/lisse.m | 1,767 | utf_8 | 74f8d56b2e55d45d3f2b3463d2cd9889 | % LISSE Smooth a scalar array with a running mean
%
% VAR = LISSE(FIELD,LX,LY)
% Smooth a scalar field by running mean: compute a runnning mean
% of width LX (zonaly or dimension 1) and LY (meridiannaly or
% dimension 2). FIELD is supposed to be symetric zonaly.
%
% Copyright (c) 2004 Guillaume Maze.
... |
github | gmaze/gmaze_legacy-master | linvp.m | .m | gmaze_legacy-master/matlab/codes/statistics/linvp.m | 4,518 | utf_8 | f6197f6b62f8b583383e6a14050a84e9 | % linvp Linear inverse problem
%
% [Xs, Cs, FXs, FX0] = linvp(X0,C0,F,CT,F0,[OPTIONS])
%
% Solve a linear inverse problem.
%
% Given f a set of constraints to be applied at points X
% F is the matrix of partial derivatives of f with respect to X:
% F(t,k) = d f(t) / d X(k)
% Because the problem is linear, no X(k) are ... |
github | gmaze/gmaze_legacy-master | smartchunk.m | .m | gmaze_legacy-master/matlab/codes/statistics/smartchunk.m | 5,500 | utf_8 | d46f020a2e00c92156b3b025a9d483cf | %smartchunk Compute homogeneous chunks of data
%
% [CHUNKS IDAT SCORE] = smartchunk(DATASET,NWORKER,[ARG,VAL])
%
% Compute NWORKER homogeneous chunks of data from DATASET so that
% chunks can be dispatch to multiple workers/processes/jobs.
%
% Inputs:
% DATASET: is an 1D array of data to chunk
% NWORKER: is an integ... |
github | gmaze/gmaze_legacy-master | allstats.m | .m | gmaze_legacy-master/matlab/codes/statistics/allstats.m | 3,372 | utf_8 | bbf2c33e5321f06dabb2bc6f4721b9aa | % STATM Compute statistics from 2 series
%
% STATM = allstats(Cr,Cf)
%
% Compute statistics from 2 series considering Cr as the reference.
%
% Inputs:
% Cr and Cf are of same length and uni-dimensional. They may contain NaNs.
%
% Outputs:
% STATM(1,:) => Mean
% STATM(2,:) => Standard Deviation (scaled by N)
% STATM... |
github | gmaze/gmaze_legacy-master | smoother2Ddiff.m | .m | gmaze_legacy-master/matlab/codes/statistics/smoother2Ddiff.m | 2,604 | utf_8 | 8b75ae9bcb2faf31e2a7c954b8e7e71b | % SMOOTHER2DDIFF Apply a diffusive smoother on a 2D field
%
% [field_out,tmp3x,tmp3y] = smoother2Ddiff(field_in,dist_in1,dist_in2);
%
% Apply a diffusive smoother based on Weaver and Courtier, 2001.
%
% field_in: field to be smoothed (masked with NaN)
% dist_in1/2: scale in first/second direction
% field_out: smoothed... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.