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
McStasMcXtrace/iFit-master
figure2xhtml.m
.m
iFit-master/Applications/x3d_version3g/figure2xhtml.m
9,018
utf_8
52df17e040100b318c594b410c3516ac
function figure2xhtml(varargin) % This function FIGURE2XHTML converts the 3D objects of a Matlab figure % to an in XHTML embedded X3D file. In a modern browser, you can now view % your figure interactively because of the great X3DOM Library % (Instant 3D the HTML way! http://www.x3dom.org/). % % Currently the fun...
github
McStasMcXtrace/iFit-master
XMLaddString.m
.m
iFit-master/Applications/x3d_version3g/functions_xml/XMLaddString.m
3,379
utf_8
f89c58b2f30e4c697cabddb1701decee
function data=XMLaddString(str,data) n1=length(data.node); if(isfieldempty(data.node(n1),'node')) n2=length(data.node(n1).node); if(isfieldempty(data.node(n1).node(n2),'node')) n3=length(data.node(n1).node(n2).node); if(isfieldempty(data.node(n1).node(n2).node(n3),'node')) n4=...
github
McStasMcXtrace/iFit-master
XMLtostring.m
.m
iFit-master/Applications/x3d_version3g/functions_xml/XMLtostring.m
2,261
utf_8
02d1765ef0ce50e9004fe2c2e944fe5d
function [strcell,nc,str]=XMLtostring(data,strcell,nc) if(nargin<2), strcell=cell(1,100000); nc=[0 0]; end nt=nc(2); nc=nc(1); nl=length(data); for i=1:nl if(isfieldempty(data(i),'name')) nc=nc+1; strcell{nc}=repmat('\t',1,nt); if(isfieldempty(data(i),'property')) nc=nc+1; strce...
github
McStasMcXtrace/iFit-master
XMLaddProperty.m
.m
iFit-master/Applications/x3d_version3g/functions_xml/XMLaddProperty.m
6,318
utf_8
c03a0b1d140a2335e7d6df5131a3ec68
function data=XMLaddProperty(name,value,data) n1=length(data.node); if(isfieldempty(data.node(n1),'node')) n2=length(data.node(n1).node); if(isfieldempty(data.node(n1).node(n2),'node')) n3=length(data.node(n1).node(n2).node); if(isfieldempty(data.node(n1).node(n2).node(n3),'node')) ...
github
McStasMcXtrace/iFit-master
XMLaddNode.m
.m
iFit-master/Applications/x3d_version3g/functions_xml/XMLaddNode.m
3,685
utf_8
da99cc002ac945f0523ec9d0ea8f3a08
function [data,loc]=XMLaddNode(name,data,loc) if(nargin<2) data=struct(); n1=0; else if(isfieldempty(data,'node')), n1=length(data.node); else n1=0; end end if(nargin<3) loc=0; end if(loc==0); data.node(n1+1).name=name; else if(isfieldempty(data.node(n1),'node')), n2=length(data.node(n1)...
github
McStasMcXtrace/iFit-master
addlinemarker.m
.m
iFit-master/Applications/x3d_version3g/functions/addlinemarker.m
4,159
utf_8
5ec26dd985a0eb6bf0c9cda43b8c8542
function data=addlinemarker(data,loc_scene,Obj) a=data.tags.maxsize*Obj.MarkerSize*0.001; V=Obj.V; x=V(:,1); y=V(:,2); z=V(:,3); x1=x-a; x2=x+a; x3=x-a*0.5; x4=x+a*0.5; y1=y-a; y2=y+a; y3=y-a*0.5; y4=y+a*0.5; z1=z-a; z2=z+a; switch(Obj.Marker(1)) case '*' [E,V]=addlinepiece(x,x,y...
github
McStasMcXtrace/iFit-master
sliceomatic.m
.m
iFit-master/Applications/sliceomatic/sliceomatic.m
46,275
utf_8
a9367310e4b0ef4a5195ba82ae5a0464
function sliceomatic(p1,p2,xmesh,ymesh,zmesh) % SLICEOMATIC - Slice and isosurface volume exploration GUI % % SLICEOMATIC(DATA) - Use 3D double matrix DATA as a volume data % % Example: % % [x,y,z] = meshgrid(-2:.2:2, -2:.25:2, -2:.16:2); % v = x .* exp(-x.^2 - y.^2 - z.^2); % sliceomatic(v) % % Using...
github
McStasMcXtrace/iFit-master
blinnblob.m
.m
iFit-master/Applications/sliceomatic/blinnblob.m
1,004
utf_8
239fa67f6c48a03641f3f1a6df023f87
function v=blinnblob(centers,nx,ny,nz) % Blinn's blobs % % Make something vaguely benzene like as follows: % % centers=[20+8*cos(theta);20+8*sin(theta);20+zeros(1,6)]' % v=blob(centers,40,40,40) % isosurface(v,.125) % Written by Mike Garrity % Copyright 2000, 2001, 2002, 2003, 2004, 2005 The MathWorks Inc % % From ACM...
github
McStasMcXtrace/iFit-master
activelabel.m
.m
iFit-master/Applications/sliceomatic/private/activelabel.m
531
utf_8
a7db5ca0c16cf6bd4123d6d2d5b25a19
function activelabel(label, string) % ACTIVELABEL(LABEL, STRING) - Create a label on GCA which is % active. LABEL is the property of GCA whose label you are % setting. STRING is the initial text string for the label. % Copyright 2000, 2001, 2002, 2003, 2004, 2005 The MathWorks Inc l = get(gca,label); ...
github
McStasMcXtrace/iFit-master
slowset.m
.m
iFit-master/Applications/sliceomatic/private/slowset.m
1,890
utf_8
25154d50f242b5f4fc08f7c08502b2f8
function slowset(handle, prop, value, increment) % SLOWSET(H, 'PROPERTY', VALUE) % % Like SET, except that the property is set against the original % value over several steps such that the value morphs from the % starting value to the end value. % % H can be a vector of handles, but they must all accept PROPERTY. % % O...
github
McStasMcXtrace/iFit-master
figmenus.m
.m
iFit-master/Applications/sliceomatic/private/figmenus.m
20,406
utf_8
035af2a0e7c396f2d9ee4571c5d5d792
function outd = figmenus(d) % Set up sliceomatic's gui menus within structure D % Copyright 2000, 2001, 2002, 2003, 2004, 2005 The MathWorks Inc %%% 2/18/05 RAB part in 3 parts %%% % Main Figure Menu set(gcf,'menubar','none'); % File menu d.filemenu = uimenu(gcf,'label','File'); d.fcopy = uimenu(d.fileme...
github
McStasMcXtrace/iFit-master
sw_drawpoly.m
.m
iFit-master/Applications/SpinW/m_files/sw_drawpoly.m
6,444
utf_8
eb4d8442bcc6e6d64b5f2d29ad88ed78
function polyDat = sw_drawpoly(varargin) % draws polyhedra around atoms on the structure plot % % polyDat = SW_DRAWPOLY(Option1, Value1, ...) % % Options: % % cAtom Indices of atom types for the center atom % Default is 1. Can be also a string or strings in a cell that % identify atoms ...
github
McStasMcXtrace/iFit-master
sw_neutron.m
.m
iFit-master/Applications/SpinW/m_files/sw_neutron.m
9,585
utf_8
fa25af1de670c279a9853ed868cf32c4
function spectra = sw_neutron(spectra, varargin) % calculates neutron scattering intensity for spin wave spectrum % % spectra = SW_NEUTRON(spectra, 'Option1', Value1' ...) % % It calculates neutron scattering intensity for polarised and unpolarised % neutron scattering on spin waves. % % Input: % % spectra Input stru...
github
McStasMcXtrace/iFit-master
sw_basismat.m
.m
iFit-master/Applications/SpinW/m_files/sw_basismat.m
6,867
utf_8
9d6ea1a05b63dd15ca0f6d1b92b3cfda
function [M, asym] = sw_basismat(symOp, r, tol) % determines allowed tensor components in a given point group symmetry % % [M, asym] = SW_BASISMAT(symOp, r, tol) % % It determines the allowed matrix elements compatible with a given point % group symmetry. The matrix can describe exchange interaction or single % ion an...
github
McStasMcXtrace/iFit-master
sw_filelist.m
.m
iFit-master/Applications/SpinW/m_files/sw_filelist.m
5,101
utf_8
e603107de5e61990a11def265ac0d33f
function varargout = sw_filelist(varargin) % lists spinw data in the Matlab workspace or in a .mat file % % list = SW_FILELIST({'Option1',Value1,...) % % % Options: % % fName To check data stored in a .mat file, fName contains the path as % a string. % sort To sort according to which column (positive...
github
McStasMcXtrace/iFit-master
sw_update.m
.m
iFit-master/Applications/SpinW/m_files/sw_update.m
5,102
utf_8
67bd498eb5172dd01f1540997f99ddf8
function onlineRev = sw_update(installDir) % updates the SpinW installation from the internet % % SW_UPDATE() % % {onlineRev} = SW_UPDATE(installDir) % % sw_update creates a new folder with the latest release beside the current % SpinW installation and add the new version to the working path (and % removing the old one...
github
McStasMcXtrace/iFit-master
sw_structfigure.m
.m
iFit-master/Applications/SpinW/m_files/sw_structfigure.m
17,516
utf_8
d3fb0a25fc0168539ddba11b4a6041e9
function hFigure = sw_structfigure % creates figure for crystal structure plot % % hFigure = SW_STRUCTFIGURE() % % See also SW.PLOT. % % $Name: SpinW$ ($Version: 2.1$) % $Author: S. Toth$ ($Contact: sandor.toth@psi.ch$) % $Revision: 238 $ ($Date: 07-Feb-2015 $) % $License: GNU GENERAL PUBLIC LICENSE$ % Positi...
github
McStasMcXtrace/iFit-master
sw_gensymcoupling.m
.m
iFit-master/Applications/SpinW/m_files/sw_gensymcoupling.m
3,701
utf_8
001b461df064011d8d14e765241e0a91
function [genCp, ugenCp] = sw_gensymcoupling(obj, coupling, sym, tol, fitmode) % generates all equivalent couplings, using space group symmetry % % [genCp ugenCp] = SW_GENSYMCOUPLING(obj, coupling, sym, {tol}) % % Input: % % obj sw class object. % coupling Vector, contains the original coupling. Dimensions are [...
github
McStasMcXtrace/iFit-master
sw_plotspec.m
.m
iFit-master/Applications/SpinW/m_files/sw_plotspec.m
24,621
utf_8
65cbcb77168645a2f43552e85a59ff35
function [fHandle0, pHandle0] = sw_plotspec(spectra, varargin) % plots spin wave spectrum % % [fHandle, pHandle] = SW_PLOTSPEC(spectra, 'option1', value1 ...) % % Options: % % mode Choose the type of plot, either a string (or number): % 'disp' dispersion (1), % 'int' intensi...
github
McStasMcXtrace/iFit-master
sw_multicolor.m
.m
iFit-master/Applications/SpinW/m_files/sw_multicolor.m
3,114
utf_8
62ef46b2e1c5d8bb0e6d1e92be0ce386
function cMat = sw_multicolor(vMat, cMap, cLim, nCol, pflipud) % creates RGB color data for multiple 2D overlapping plots % % cMat = sw_multicolor(vMat, cMap, cLim, {nCol}, {flipud}) % % Input: % % vMat Matrix that contains the input 2D data, dimensions are % [d1 d2 nPlot]. Where each plot has a dimensio...
github
McStasMcXtrace/iFit-master
sw_draw.m
.m
iFit-master/Applications/SpinW/m_files/sw_draw.m
8,971
utf_8
4943ef1c0568ea42d1b04840148a1b97
function polyDat = sw_draw(varargin) % plots additional object onto the crystal structure % % polyDat = SW_DRAW(Option1, Value1, ...) % % It plots extra objects (bonds, polyhedra) onto the crystal structure % plot produced previously by sw.plot() function. % % Options: % % mode Selects what to plot: % ...
github
McStasMcXtrace/iFit-master
importcif.m
.m
iFit-master/Applications/SpinW/m_files/@cif/importcif.m
9,357
utf_8
15d617b7243213475295036a2e9632dc
function [cifdat] = importcif(~, dataStr) % imports .cif data from file, web or string % if exist(dataStr,'file') == 2 % % get the name of the file % fid = fopen(dataStr); % source = fopen(fid); % fclose(fid); % % cifStr = regexp(fileread(dataStr), ['(?:' sprintf('\n') ')+'], 'split'); % i...
github
McStasMcXtrace/iFit-master
gencoupling.m
.m
iFit-master/Applications/SpinW/m_files/@sw/gencoupling.m
8,370
utf_8
61e101edff0de1c18e9cbe545c4638aa
function gencoupling(obj, varargin) % generates the COUPLING property of sw object % % GENCOUPLING(obj, 'option1', value, ...) % % The function calculates equivalent bonds between magnetic atoms. These % are determined either based on crystal symmetry or bond length (with % tolDist tolerance). If the space group...
github
McStasMcXtrace/iFit-master
plot.m
.m
iFit-master/Applications/SpinW/m_files/@sw/plot.m
53,448
utf_8
5a0b1090126323ab8e079940a3cca9f4
function varargout = plot(obj, varargin) % plots crystal structure, magnetic structure, anisotropy and couplings % % [hFigure, handle] = PLOT(obj, 'option1', value1, ...) % % The function plots the atoms and couplings stored in obj onto a Matlab % figure. Optionally a script output can be produced that creates a ...
github
McStasMcXtrace/iFit-master
fitspec.m
.m
iFit-master/Applications/SpinW/m_files/@sw/fitspec.m
11,527
utf_8
0cb0e6de78d1102b7e13ddcdc018880e
function fitsp = fitspec(obj, varargin) % fits spin wave spectra to experimental spectral data % % fitsp = FITSPEC(obj, 'Option1', Value1, ...) % % Options: % % epsilon Small number that controls wether the magnetic structure is % incommensurate or commensurate, default value is 1e-5. % % func Function...
github
McStasMcXtrace/iFit-master
anneal.m
.m
iFit-master/Applications/SpinW/m_files/@sw/anneal.m
34,865
utf_8
1d7569227111be46edc51718bea2b5ab
function stat = anneal(obj, varargin) % performs simulated annealing on the magnetic structure % % stat = ANNEAL(obj, 'option1', value1 ...) % % The function can deal only with single ion anisotropy and isotropic % exchange interactions in 1, 2 or 3 spin dimensions. % General and antisymmetric exchage interactio...
github
McStasMcXtrace/iFit-master
optmagstr.m
.m
iFit-master/Applications/SpinW/m_files/@sw/optmagstr.m
9,335
utf_8
9a1a4a81a1cb1250606ab91c8463fce8
function optm = optmagstr(obj, varargin) % optimises magnetic structure by minimizing the energy using non-linear optimization algorithms % % optm = OPTMAGSTR(obj, Option1, Value1, ...) % % Input: % % obj sw class object. % % Options: % % func Function that produce the magnetic moments, ordering wave % ...
github
McStasMcXtrace/iFit-master
export.m
.m
iFit-master/Applications/SpinW/m_files/@sw/export.m
8,473
utf_8
2a423e7febd1321432fded8d8e536d02
function out = export(obj, varargin) % export data from sw object into different file formats % % out = EXPORT(obj, 'Option1', Value1, ...) % % Different part of the sw object data can be exported selected by the % 'format' option. Right now the following formats are supported: % % 'pcr' Creates part of a .pcr file...
github
McStasMcXtrace/iFit-master
strword.m
.m
iFit-master/Applications/SpinW/external/strword.m
1,042
utf_8
2c8bb3788de9c1504e458b70626bf04a
function out = strword(str, idx, last) % extract words separated by whitespace from string % % out = strword(str, idx, {last}) % % Input: % % str String input. % idx indexes of the words to be extracted. % last If true, the last word is given if idx contains an element % larger than the word ...
github
McStasMcXtrace/iFit-master
makecolormap.m
.m
iFit-master/Applications/SpinW/external/makecolormap.m
1,834
utf_8
41c24320a20acbe3f970daab69f2b8e9
function cMap = makecolormap(varargin) %% MAKECOLORMAP makes smoothly varying colormaps % a = makeColorMap(beginColor, middleColor, endColor, numSteps); % a = makeColorMap(beginColor, endColor, numSteps); % a = makeColorMap(beginColor, middleColor, endColor); % a = makeColorMap(beginColor, endColor); % % all col...
github
McStasMcXtrace/iFit-master
eigenshuffle.m
.m
iFit-master/Applications/SpinW/external/eigenshuffle.m
13,119
utf_8
01dda69fa53a8b400b706d30d8db6bac
function [Vseq,Dseq] = eigenshuffle(Asequence) % eigenshuffle: Consistent sorting for an eigenvalue/vector sequence % [Vseq,Dseq] = eigenshuffle(Asequence) % % Includes munkres.m (by gracious permission from Yi Cao) % to choose the appropriate permutation. This greatly % enhances the speed of eigenshuffle over my previ...
github
McStasMcXtrace/iFit-master
sw_fminsearchbnd.m
.m
iFit-master/Applications/SpinW/external/fminsearchbnd/sw_fminsearchbnd.m
8,128
utf_8
5cb74f77e923e7bf4f0c0823f80cab7b
function [x,fval,exitflag,output] = sw_fminsearchbnd(fun,x0,LB,UB,options,varargin) % FMINSEARCHBND: FMINSEARCH, but with bound constraints by transformation % usage: x=FMINSEARCHBND(fun,x0) % usage: x=FMINSEARCHBND(fun,x0,LB) % usage: x=FMINSEARCHBND(fun,x0,LB,UB) % usage: x=FMINSEARCHBND(fun,x0,LB,UB,options) % usage...
github
McStasMcXtrace/iFit-master
uiinspect.m
.m
iFit-master/Applications/uiinspect/uiinspect.m
133,041
utf_8
8997c5bb18a7c0b7f987f6d2dbe203d4
function hFig = uiinspect(obj, fig) % uiinspect Inspect an object handle (Java/COM/HG) and display its methods/props/callbacks in a unified window % % Syntax: % hFig = uiinspect(obj, hFig) % hFig input argument is optional % % Description: % UIINSPECT(OBJ) inspects an object handle (e.g., Java, COM, Han...
github
McStasMcXtrace/iFit-master
paste.m
.m
iFit-master/Applications/CopyPaste/paste.m
9,652
utf_8
bf7f5acc28513bb7fad714c663a5f5da
% PASTE copies the content of the clipboard to a variable; creates a % string, a cell array, or a numerical array, depending on content. % % Usage: % x = paste; % x = paste(dec,sep,lf); % % The program will try to create an array. For this to succeed, the % material that is passed from the clipboard must be...
github
McStasMcXtrace/iFit-master
copy.m
.m
iFit-master/Applications/CopyPaste/copy.m
6,238
utf_8
06fe29236a1db0782c1d2bc8a53db0ac
% COPY puts a string, cell array, or numerical array into the clipboard, % from where it can easily be imported by other programs. % % Usage: % copy(x) % copy(...,dec,sep,lf) % % x can be a numerical array (one or two dimensional), a cell array, a % string, or a handle to a figure. The program does not hand...
github
McStasMcXtrace/iFit-master
mdot.m
.m
iFit-master/Applications/m2html/mdot.m
2,506
utf_8
b3e4416e18ee58ac9ab4cc621d7bbd6e
function mdot(mmat, dotfile,f) %MDOT - Export a dependency graph into DOT language % MDOT(MMAT, DOTFILE) loads a .mat file generated by M2HTML using option % ('save','on') and writes an ascii file using the DOT language that can % be drawn using <dot> or <neato> . % MDOT(MMAT, DOTFILE,F) builds the graph containing...
github
McStasMcXtrace/iFit-master
m2html.m
.m
iFit-master/Applications/m2html/m2html.m
49,712
utf_8
f7f6f79fdfa3ab76415f0a775479f6aa
function m2html(varargin) %M2HTML - Documentation Generator for Matlab M-files and Toolboxes in HTML % M2HTML by itself generates an HTML documentation of the Matlab M-files found % in the direct subdirectories of the current directory. HTML files are % written in a 'doc' directory (created if necessary). All the o...
github
McStasMcXtrace/iFit-master
doxysearch.m
.m
iFit-master/Applications/m2html/private/doxysearch.m
7,714
utf_8
ebb1fad211432afc84e829c8563633c3
function result = doxysearch(query,filename) %DOXYSEARCH Search a query in a 'search.idx' file % RESULT = DOXYSEARCH(QUERY,FILENAME) looks for request QUERY % in FILENAME (Doxygen search.idx format) and returns a list of % files responding to the request in RESULT. % % See also DOXYREAD, DOXYWRITE % Copyright (C)...
github
McStasMcXtrace/iFit-master
doxywrite.m
.m
iFit-master/Applications/m2html/private/doxywrite.m
3,574
utf_8
311087393513c11cc74ba8ccbd0804f6
function doxywrite(filename, kw, statinfo, docinfo) %DOXYWRITE Write a 'search.idx' file compatible with DOXYGEN % DOXYWRITE(FILENAME, KW, STATINFO, DOCINFO) writes file FILENAME % (Doxygen search.idx. format) using the cell array KW containing the % word list, the sparse matrix (nbword x nbfile) with non-null value...
github
McStasMcXtrace/iFit-master
doxyread.m
.m
iFit-master/Applications/m2html/private/doxyread.m
3,083
utf_8
5c7eb15b77ff6a556d409ac86bfc7c80
function [statlist, docinfo] = doxyread(filename) %DOXYREAD Read a 'search.idx' file generated by DOXYGEN % STATLIST = DOXYREAD(FILENAME) reads FILENAME (Doxygen search.idx % format) and returns the list of keywords STATLIST as a cell array. % [STATLIST, DOCINFO] = DOXYREAD(FILENAME) also returns a cell array % con...
github
McStasMcXtrace/iFit-master
mifit.m
.m
iFit-master/Applications/miFit/mifit.m
19,246
utf_8
5ad7c866bd75c1e55a911d7d1b953fba
function varargout = mifit(varargin) % miFit: a user interface to iFit % % The miFit application is a simple user interface to iFit. % It consists in a main panel with menus. % % Data Sets: % ---------- % The Data Sets files can be drag-n-dropped to be appended to the list. You % may as well use the File/Open...
github
McStasMcXtrace/iFit-master
mifit_Models_View_Parameters.m
.m
iFit-master/Applications/miFit/private/mifit_Models_View_Parameters.m
13,064
utf_8
9278195e4faa6fdee7140396c6639f41
function stop=mifit_Models_View_Parameters(varargin) % [internal] mifit_Models_View_Parameters: the window showing Model parameters % get 1st selected Model from Data set or Models menu current choice % Display a uitable with columns: % [ Parameters | ParameterValues | ParameterUncertainty | constraints.fix...
github
McStasMcXtrace/iFit-master
mcdisplay.m
.m
iFit-master/Applications/McStas/mcdisplay.m
6,373
UNKNOWN
6fae728be94ec619fd58bb8c188d38bd
function mcdisplay(varargin) % % mcdisplay.m: % % Implementation of matlab functions for mcdisplay online plotting. % % Copyright 2003 Peter Willendrup, RIS�national laboratory % % Covers also the scripts % PlotInstrument.m % wait.m % CheckNeutNumber.m % ReshapeTransform.m % CheckTimeout.m % resume.m % % Written by: P....
github
McStasMcXtrace/iFit-master
ifitdeploy.m
.m
iFit-master/Applications/standalone/ifitdeploy.m
6,221
utf_8
d43955bb4ecdc975ed652c121c64c92e
function ifitdeploy(target) % ifitdeploy: standalone creation % % This function creates a standalone version of the iFit distribution. % It requires the Matlab Compiler. Shortcuts/launchers are also created for Linux/Windows. if ~exist('mcc'), return; end % location of the iFit directory cd(ifitpath); p=pwd; % get ...
github
McStasMcXtrace/iFit-master
ifit.m
.m
iFit-master/Applications/standalone/ifit.m
21,203
utf_8
65ea17678eda7629a8fd7a472844217e
function ifit(varargin) % Usage: ifit [options] arguments commands % % iFit executable from command line. % Project page at <http://ifit.mccode.org> % % arguments: % Any file name, including directories (imports all recursively). % Files can also be given as distant URLs (via http and ftp), and as compress...
github
McStasMcXtrace/iFit-master
launcher_read.m
.m
iFit-master/Applications/standalone/private/launcher_read.m
2,050
utf_8
e0aecee7d49dfd8b448d50c9a55b3f78
function [operator, comment] = launcher_read(filename) % launcher_read: reads a .desktop (OpenDesktop/Linux) or .bat (Windows) launcher % % [operator, comment] = launcher_read(filename) % reads a filename launcher, and retrieve the operator/command stored % first test if this is a launcher if nargin == 0, filena...
github
McStasMcXtrace/iFit-master
launcher_write.m
.m
iFit-master/Applications/standalone/private/launcher_write.m
4,884
utf_8
f6ec48b127ac1e5226f8068be7d9f1e7
function [operator, comment] = launcher_write(filename, operator) % launcher_write: writes a .desktop (OpenDesktop/Linux) or .bat (Windows) launcher % % [operator, comment] = launcher_write(filename, operator) % writes a filename launcher, and feed-in the operator/command % filename: char % operator: char % ...
github
McStasMcXtrace/iFit-master
cif2hkl.m
.m
iFit-master/Scripts/Signal/cif2hkl.m
12,332
utf_8
1ee5024a6fa97d71b31d6b0b23e76519
function [file_out, result] = cif2hkl(varargin) % file_out = cif2hkl(file_in, file_out, lambda, mode, verbose) % % Read a CIF/CFL/SHX/PCR crystallographic description % and generates a HKL F^2 reflection list. % % When the argument is a chemical formula (elements separated with spaces), or % a COD ID, a search i...
github
McStasMcXtrace/iFit-master
fconv.m
.m
iFit-master/Scripts/Signal/fconv.m
6,871
utf_8
e3342bc86e0fad2e906ec0a51ec2fd12
function y=fconv(x, h, shape) %FCONV Fast Convolution/Correlation % y = FCONV(x, h, shape) convolves x and h. A deconvolution mode is also possible. % The correlation, instead of the convolution, can also be computed. % This FFT based convolution should provide the same results as conv2 and convn. % It works wi...
github
McStasMcXtrace/iFit-master
gaussnd.m
.m
iFit-master/Scripts/Models/Factory/gaussnd.m
6,511
utf_8
2b93c0a5c70328e7fc46d88b4a36ff1d
function y=gaussnd(varargin) % y = gaussnd(p, x, y, ..., signal) : nD Gaussian % % iFunc/gaussnd nD Gaussian fitting function % % y = R0 * exp(-[x,y,...]' * G * [x,y,...]) % % a multi-dimensional Gaussian profile % <http://en.wikipedia.org/wiki/Gaussian_function#Multi-dimensional_Gaussian_function> % % This mode...
github
McStasMcXtrace/iFit-master
sqw_spinw.m
.m
iFit-master/Scripts/Models/Factory/sqw_spinw.m
9,035
utf_8
1c054f6b0b926d1773ccf4530d22a80c
function signal=sqw_spinw(varargin) % model = sqw_spinw(sw, options) : S(q,w) dispersion(HKL) spin-wave Sqw4D % % iFunc/sqw_spinw: a 4D S(q,w) dispersion obtained from the % spinw package from S. Toth. A SpinW object must first be created, and is then % converted into an iFunc model for HKL evaluation. The intens...
github
McStasMcXtrace/iFit-master
sqw_spinwave.m
.m
iFit-master/Scripts/Models/Factory/sqw_spinwave.m
25,719
utf_8
12ced9fd1e22f7772c3febd77f1f2377
function s = sqw_spinwave(file, action) % sqw_spinwave: build a SpinWave model (S. Petit/LLB) Sqw4D % % MODEL CREATION % % Performs a SPINWAVE calculation using S. Petit/LLB code. The input file can be: % % * a spinwave input file, such as MnFe4Si3.txt (in Data) % * 'defaults' will use an example. % * a CIF/CFL/S...
github
McStasMcXtrace/iFit-master
mccode.m
.m
iFit-master/Scripts/Models/Factory/mccode.m
35,861
utf_8
786a602670d26183fe9f0bbc0299eab4
function y = mccode(instr, options, parameters) % y = mccode(instr, options, parameters) : McCode (McStas/McXtrace) instrument % % iFunc/mccode a McCode instrument % y=model instrument % % MODEL CREATION: % ------------------------------------------------------------------------------ % mccode(description) % ...
github
McStasMcXtrace/iFit-master
rietveld.m
.m
iFit-master/Scripts/Models/Factory/rietveld.m
16,381
utf_8
3715f1a177c496ab76f89d46c0c1e3e0
function y = rietveld(sample, instr, varargin) % model=rietveld(sample, instrument, ....) Rietveld refinement of powder/single crystal % % This function builds a fit model from: % * a sample structure % * a McCode instrument model (usually a diffractometer) % The model can then be used for refinement as a usual fi...
github
McStasMcXtrace/iFit-master
sqw_phonons.m
.m
iFit-master/Scripts/Models/Factory/sqw_phonons.m
37,209
utf_8
7e48ba074dfc5c729dbe486aae2d2ba2
function signal=sqw_phonons(configuration, varargin) % model=sqw_phonons(configuration, calculator, ..., options) Sqw4D % % iFunc/sqw_phonons: computes phonon 4D S(q,w) dispersions using the ASE. % A model which computes phonon dispersions from the Hellmann-Feynman forces acting % between atoms. The input argu...
github
McStasMcXtrace/iFit-master
sqw_phonons_htmlreport.m
.m
iFit-master/Scripts/Models/Factory/private/sqw_phonons_htmlreport.m
35,332
utf_8
b81daff31c3991be5178f7d24e0d46ce
function filename = sqw_phonons_htmlreport(filename, step, options, data) % write an HTML report on a sqw_phonons computation % % sections: % * calculator and system informations (from configuration, exported files, options) % * optimisation status % * on-going calculation status (when possible will write ETA) % * stat...
github
McStasMcXtrace/iFit-master
sqw_phonons_calc.m
.m
iFit-master/Scripts/Models/Factory/private/sqw_phonons_calc.m
28,888
utf_8
d98c6cd2600acb02031b5e659e1f7604
function [decl,calc,signal,options] = sqw_phonons_calc(options, status, calc_choice, read) % sqw_phonons_calc: set python code to initiate the calculator % requires: nothing except options, status(requirements), choice and % output: python snippets to setup ASE Calculator, or signal=iFunc (QE case) calc = ''; d...
github
McStasMcXtrace/iFit-master
sqw_phonons_check.m
.m
iFit-master/Scripts/Models/Factory/private/sqw_phonons_check.m
12,283
utf_8
8bad075671248a3a4a1a408dbb028341
function [options, result, read] = sqw_phonons_check(configuration, options, status) % sqw_phonons_check: read the initial material structure % requires: nothing except file/directory with material 'POSCAR' or other % output: generates a script 'sqw_phonons_check.py' to generate ASE atoms.pkl target = options.ta...
github
McStasMcXtrace/iFit-master
inputdlg.m
.m
iFit-master/Scripts/Models/Factory/private/inputdlg.m
18,263
utf_8
a36ad9271808c3bc1bceba50b9abfaf5
function Answer =inputdlg(Prompt, Title, NumLines, DefAns, Resize) %INPUTDLG Input dialog box (with non-modal support). % ANSWER = INPUTDLG(PROMPT) creates a modal dialog box that returns user % input for multiple prompts in the cell array ANSWER. PROMPT is a cell % array containing the PROMPT strings. % % INPUTDLG...
github
McStasMcXtrace/iFit-master
sqw_phonons_b_coh.m
.m
iFit-master/Scripts/Models/Factory/private/sqw_phonons_b_coh.m
10,492
utf_8
55a673842c8f1ac889d8a2ab4581cf85
function [b_coh, b_inc,sigma_abs,element] = sqw_phonons_b_coh(chemical_elements) % sqw_phonons_b_coh: return cross sections per elements % input: cellstr or single char % output: % b_coh, b_inc: scattering length [fm] % sigma_abs: absorption cross section [barn] % element: atom symbols persistent ele...
github
McStasMcXtrace/iFit-master
sqw_phonons_requirements.m
.m
iFit-master/Scripts/Models/Factory/private/sqw_phonons_requirements.m
8,671
utf_8
9b04a636da991d6f0773531ba35da23e
function [status, link] = sqw_phonons_requirements(options) % sqw_phonons_requirements: check for availability of ASE and MD codes % % MPI, EMT, GPAW, Abinit, Elk, QE, VASP % % returns a structure with a field for each MD software being 1 when available. status = []; % set-up a temporary directory for the tests d = te...
github
McStasMcXtrace/iFit-master
missing.m
.m
iFit-master/Scripts/Utility/missing.m
1,006
utf_8
30741c4b33d8f162b09c34590a79fc5b
function s = missing(obj1, obj2) % MISSING Compare class methods. % MISSING(obj1, obj2) compare methods from two classes and show differences. s = []; if ~nargin, return; end if ischar(obj1), obj1 = feval(obj1); end if nargin == 1 s=methods(obj1); end if ischar(obj2), obj2 = feval(obj2); end ...
github
McStasMcXtrace/iFit-master
load_nmoldyn.m
.m
iFit-master/Scripts/Load/load_nmoldyn.m
4,306
utf_8
33c4a20a00ca35e7fb577ebc9fc794e2
function a = load_nmoldyn(filename) % function a=load_nmoldyn(filename) % % Returns an iData style dataset from an nMoldyn file % % Version: $Date$ $Version$ $Author$ % See also: iData/load, iLoad, save, iData/saveas % if ~isa(filename,'iData') a = iData(iLoad(filename)); % no post-processing else a = filename; ...
github
McStasMcXtrace/iFit-master
openendf.m
.m
iFit-master/Scripts/Load/openendf.m
7,915
utf_8
42f0c0912c61fcea70b69699e36e4185
function out = openendf(filename) %OPENENDF Open an Evaluated Nuclear Data File, display it % and set the 'ans' variable to an iData object with its content % if ~isa(filename,'iData') out = iData(iLoad(filename,'ENDF')); % no post-processing else out = filename; end clear filename; if numel(out) > 1 %...
github
McStasMcXtrace/iFit-master
opensim.m
.m
iFit-master/Scripts/Load/opensim.m
12,683
utf_8
34623a74bbc2fd6fcc5d1cadf7faf101
function out = opensim(filename) %OPENSIM Open a McStas SIM file, display it % and set the 'ans' variable to an iData object with its content % if ~isa(filename,'iData') out = iData(iLoad(filename,mfilename)); % no post-processing else out = filename; end clear filename; if numel(out) > 1 % handle input...
github
McStasMcXtrace/iFit-master
opencdf.m
.m
iFit-master/Scripts/Load/opencdf.m
3,023
utf_8
4f611992e7c0063af4bcc495d22588f1
function out = opencdf(filename) %OPENCDF Open a NetCDF file, display it % and set the 'ans' variable to an iData object with its content % if ~isa(filename,'iData') out = iData(filename,'NetCDF'); % with post-processing return else out = filename; end clear filename; if numel(out) > 1 % handle input...
github
McStasMcXtrace/iFit-master
load_NeXus.m
.m
iFit-master/Scripts/Load/private/load_NeXus.m
13,040
utf_8
d8e57f0a3b574f617f7d7bc7db0d953e
function out = load_NeXus(in) % LOAD_NEXUS format an HDF file with NeXus structure (signal, axes, ...) % See https://www.nexusformat.org/ % % input: % in: initial single HDF/NeXus data set loaded as a raw iData % returns: % out: NXdata and NXdetector blocks % % called by: openhdf % The elemnets we wish to ident...
github
McStasMcXtrace/iFit-master
read_analyze.m
.m
iFit-master/Libraries/Loaders/read_analyze.m
15,893
utf_8
7c1ba188a758f5164be07ad039890860
function Analyze = read_analyze(filename) % read_analyze Load Analyze hdr/img dataset from Mayo Clinic. % Analyze = read_analyze(filename) % % Analyze is a struct with members: % hdr - header information % img - volume information % % Format definition from: https://en.wikipedia.org/wiki/Analyze_(imaging_so...
github
McStasMcXtrace/iFit-master
read_compressed.m
.m
iFit-master/Libraries/Loaders/read_compressed.m
8,266
utf_8
3c01e74156a4029dc0f68329d693d2b5
function s = read_compressed(filename, option, getpath) % READ_COMPRESSED Read a compressed file (archive). % Read a ZIP, TAR, GZIP, LZ4, ZSTD, BZIP2, XZ, LZO, ... file. % You should install the extractors individually. % Recommended: % * LZ4 <https://lz4.github.io/lz4/> (2011). Extremely fast. % * ZSTD <htt...
github
McStasMcXtrace/iFit-master
read_mrc.m
.m
iFit-master/Libraries/Loaders/read_mrc.m
19,211
utf_8
3c7ff6018c18e9c076c9b6d2b06279af
function [Data] = read_mrc(file) % read_mrc read a MRC/CCP4/MAP electronic density map file % [Data] = read_mrc(file) % % Format definition: % <http://en.wikipedia.org/wiki/MRC_%28file_format%29> % % Get EM data files at EMDB Data base <https://www.emdataresource.org/index.html> % % References: % tom_mrcread...
github
McStasMcXtrace/iFit-master
read_edf.m
.m
iFit-master/Libraries/Loaders/read_edf.m
12,089
utf_8
0f3c9edbe1c22f1c764f4d6cf229452b
function s = read_edf(filename) % read_edf Read an ESRF Data Fornmat file (EDF) % s = read_edf(filename) % % Only reads the first block/image % % Using: pmedf_read and pmedfwrite by Petr Mikulik, Masaryk University, Brno, 11.8.2010 % used in iLoad and iData/saveas, GPL % <http://www.sci.muni.cz/~mikulik/Soft4Synchro...
github
McStasMcXtrace/iFit-master
str2struct.m
.m
iFit-master/Libraries/Loaders/str2struct.m
4,694
utf_8
bd04b93ce6f54245a22a15499bd5affc
function s=str2struct(string) % s=str2struct(string) Create a structure from string lines % This function creates a structure from string containing <name> <value> pairs % Structure member must be separated by ';' or end-of-lines. % The member assignation can be specified with spaces, '=' and ':' % Values of ty...
github
McStasMcXtrace/iFit-master
read_obj.m
.m
iFit-master/Libraries/Loaders/read_obj.m
15,537
utf_8
ff383365bf24431803a39dd5610da7c3
function data = read_obj(filename) % read_obj Wrapper to read ascii OBJ % data = read_obj(filename) % % References: % read_wobj from D.Kroon University of Twente (June 2010) % <http://www.mathworks.com/matlabcentral/fileexchange/27982-wavefront-obj-toolbox> % BSD license % % See also: read_stl data =...
github
McStasMcXtrace/iFit-master
read_cdf.m
.m
iFit-master/Libraries/Loaders/read_cdf.m
2,954
utf_8
b69c2facc511e4e00e4c475fa955ca72
function s = read_cdf(filename) % read_cdf Read a CDF file % s = read_cdf(filename) % % http://en.wikipedia.org/wiki/Common_Data_Format % % See also: read_nc, read_hdf4, read_hdf5 s=[]; if nargin == 0 || any(strcmp(filename, {'identify','query','defaults'})) CDF.name ='Common Data Format CDF (.cdf)'; ...
github
McStasMcXtrace/iFit-master
read_nc.m
.m
iFit-master/Libraries/Loaders/read_nc.m
10,966
utf_8
654d63eded2a3ce6c2cf5b344214f9b4
function S = read_nc(File,varargin) % read a NetCDF file, version 1 and 2 % S = read_nc(File) % % Fornat definition <https://en.wikipedia.org/wiki/NetCDF> % % references: % tom_mrcread from Wolfgang Baumeister (TOM Matlab toolbox), 2008 % used to read MRC electron density map files % <http://www.biochem.mpg.de/en/r...
github
McStasMcXtrace/iFit-master
read_json.m
.m
iFit-master/Libraries/Loaders/read_json.m
6,925
utf_8
1edf98f2751d9a0c3ef899f59a4b65cf
function M=read_json(J) % read_json Read a JSON file % s = read_json(filename) % % Input: filename: JSON file (string) % output: structure % Example: y=read_json(fullfile(ifitpath, 'Data','iFit_iD115470.json')); isstruct(y) % % References: % json4mat by Jonas Almeida, April 2010 % used for I/O with JSON f...
github
McStasMcXtrace/iFit-master
read_endf.m
.m
iFit-master/Libraries/Loaders/read_endf.m
31,469
utf_8
24a654faf7097963b215c9fa4f928157
function endf = read_endf(filename) % data = read_endf(filename) import ENDF files % % import ENDF files, either using PyNE or slower/partial Matlab reader. % % Useful tokens for neutron scattering % MF1/MT451 as 'info': % ZA Standard material charge % AWR Standard material mass % AWI Mass of the projec...
github
McStasMcXtrace/iFit-master
read_ace.m
.m
iFit-master/Libraries/Loaders/read_ace.m
3,635
utf_8
86bcab99794f9816eaa3f512c2a7dbba
function ace = read_ace(filename) % data = read_ace(filename) Read MCNP/ACE file % % import MCNP/ACE files using PyNE % % Get ACE files from: http://www.cab.cnea.gov.ar/nyr/tsl_eng.html % % % % for MF7 MT4 from ACE % lib = pyne.ace.Library('/home/farhi/Programs/MCNP/CAB-Sab/hwtr-293/hwtr-293.ace' ) % lib.read() % s...
github
McStasMcXtrace/iFit-master
read_varian.m
.m
iFit-master/Libraries/Loaders/read_varian.m
11,648
utf_8
afe8718fff9e42290b120b877b78a139
function data = read_varian(file) % READ_VARIAN read a Varian NMR directory % data = read_varian(file) % % the argument can be any file from the NMR data set directory % which should contain a 'fid' and a 'procpar' file. % % Credits: DOSYToolbox, Copyright 2007-2008 <Mathias Nilsson> % <http://dosytoolbox.chemist...
github
McStasMcXtrace/iFit-master
read_hspy.m
.m
iFit-master/Libraries/Loaders/read_hspy.m
9,219
utf_8
091b66c59f7d1d7095b0dc1e2556465e
function s = read_hspy(filename) % READ_HSPY Read an HypersPy HDF5 data set. % See https://hyperspy.org/ s = []; if nargin == 0 || any(strcmp(filename, {'identify','query','defaults'})) hspy.name = 'HypersPy HDF5 data format'; hspy.method = mfilename; hspy.extension ={'hspy'}; s = ...
github
McStasMcXtrace/iFit-master
read_nii.m
.m
iFit-master/Libraries/Loaders/read_nii.m
56,381
utf_8
017f67ea07234f69efcb300e49567634
function data = read_nii(filename) % read a NifTi Neuroimaging Informatics Technology Initiative volume % data = read_nii(filename) % % Format definition and consortium <http://nifti.nimh.nih.gov/> % % NifTi example data NII files at <https://nifti.nimh.nih.gov/nifti-1/data> % % references: % http://www.mathworks.co...
github
McStasMcXtrace/iFit-master
read_ply.m
.m
iFit-master/Libraries/Loaders/read_ply.m
16,956
utf_8
1d3092820e9364a42384a7f6293b6eae
function data = read_ply(filename, varargin) % data=read_ply(filename, options, ...) Read PLY 3D stereo-lithography CAD data % % read_ply Read PLY 3D stereo-lithography CAD data % % Reference: PLY format at https://en.wikipedia.org/wiki/PLY_%28file_format%29 % % Input: filename: PLY Data text file (string) % output:...
github
McStasMcXtrace/iFit-master
read_hdf4.m
.m
iFit-master/Libraries/Loaders/read_hdf4.m
6,174
utf_8
9d2da5dfa467dfe15477f39f36fa3b7f
function data = read_hdf4(filename) % read_hdf4 Wrapper to hdfinfo/hdfread which reconstructs the HDF4 structure % data = read_hdf4(filename) % % The returned structure has: % data.<path>... the main branch holding the HDF4 data sets % data.Attributes.<path> the sub-structure holding all attributes with simi...
github
McStasMcXtrace/iFit-master
read_mccode.m
.m
iFit-master/Libraries/Loaders/read_mccode.m
27,649
utf_8
1ca5c9d585c784a88793a420cd433eeb
function data = read_mccode(filename) % read_mccode load a McCode (McStas/McXtrace) simulation result % data = read_mccode(filename) % % McCode gathers McStas (neutron scattering ray-tracing) http://www.mcstas.org % McXtrace (x-ray scattering ray-tracing) http://www.mcxtrace.org % % This function impor...
github
McStasMcXtrace/iFit-master
read_spe.m
.m
iFit-master/Libraries/Loaders/read_spe.m
7,282
utf_8
cb832147809602c4a44d99a4218d2de3
function s = read_spe(filename, varargin) % data=read_spe(filename, options, ...) read a SPE (Roper x-ray CCD image or ISIS) % % read_spe read a SPE either from % Roper Scientific / PI Acton CCD data files written by WinView % or % ISIS/SPE tof data % % References: % May 9th 2008, Oliver Bunk: 1st version % <h...
github
McStasMcXtrace/iFit-master
read_sif.m
.m
iFit-master/Libraries/Loaders/read_sif.m
14,115
utf_8
f3ad002fb9e3878d9b23fc82acd62c04
% data=read_sif(filename) read a SIF x-ray CCD image % % imports Andor CCD data (iXon kinetic, Shamrock spectrograph, Newton). % % References: % Marcel Leutenegger © November 2006 % Updated by Uli Klessinger 18 Jun 2012 % Todd Karin 2012 % http://www.andor.com/scientific-cameras % % Input: filename: SIF file...
github
McStasMcXtrace/iFit-master
read_xyz.m
.m
iFit-master/Libraries/Loaders/read_xyz.m
1,520
utf_8
52570329c81e8a08e7c36334c1e3eb31
% READ_XYZ read a Molecule XYZ file % % Usage: s = read_xyz(filename) % % References: % https://en.wikipedia.org/wiki/XYZ_file_format % http://www.mathworks.com/matlabcentral/fileexchange/18233-nanovis--molecular-visualizer % % See also: read_poscar, read_pdb, read_mrc, read_cif function s = ...
github
McStasMcXtrace/iFit-master
uigetfiles.m
.m
iFit-master/Libraries/Loaders/uigetfiles.m
30,573
utf_8
13294fb99c7949046aa8d65b518ec651
function [filename, pathname] = uigetfiles(filterspec, title, varargin) % UIGETFILES Multiple open file dialog box % [filename, pathname] = uigetfiles(filterspec, title, 'option',value, ...) % displays a dialog box for the user to fill in, and returns the % filename and path strings. Multiple choices are possi...
github
McStasMcXtrace/iFit-master
iLoad.m
.m
iFit-master/Libraries/Loaders/iLoad.m
16,202
utf_8
faa99d41e55e2256550a076c7680763d
function [data, format] = iLoad(filename, loader, varargin) % [data, loader] = iLoad(file, loader, ...) imports any data into Matlab. % % DESCRIPTION: % ------------ % Imports any data into Matlab, returned as a structure or cell. % % Default supported formats include: any text based including CSV, Lotus1-2-3, SUN s...
github
McStasMcXtrace/iFit-master
read_anytext.m
.m
iFit-master/Libraries/Loaders/read_anytext.m
13,165
utf_8
ff7a624a9edcd39cae7499ea96ae29e9
function s = read_anytext(varargin) % read_anytext import any text using 'looktxt'. % data = read_anytext(filename, options...) % % The possible options are: %'--catenate' Catenates similar numerical fields (which have similar dimensions % and names. Recommended. %'--fast' When numerical data bl...
github
McStasMcXtrace/iFit-master
read_igor.m
.m
iFit-master/Libraries/Loaders/read_igor.m
25,932
utf_8
da100ffffdd075975f53922d88b264ad
function data = read_igor(filename) % read_igor Load an Igor Wave dataset (IBW). % data = read_igor(filename) % % References: % Igor Pro file format (ibw) to matlab variable by Jakub Bialek (2013) % used to read Igor pro Wave files, BSD license % <http://www.mathworks.com/matlabcentral/fileexchange/42679-igor-pro-f...
github
McStasMcXtrace/iFit-master
read_idl.m
.m
iFit-master/Libraries/Loaders/read_idl.m
29,309
utf_8
2164b25ffc7d9c4008645cbde5cf1d4f
function outargs=read_idl(varargin) % READ_IDL restores variable from an IDL save file into Matlab % variables. % % s=read_idl(filename) % % Input arguments (can appear in any order, and all are optional): % % - filename: complete path specification for the save file % - 'lowercase': convert variable names from A...
github
McStasMcXtrace/iFit-master
read_xml.m
.m
iFit-master/Libraries/Loaders/read_xml.m
9,343
utf_8
7e697572eddb92e5af5ac50003904312
function s = read_xml( file ) % data=read_xml(filename) read XML file % % read_xml Wrapper to directly read XML files % % Input: filename: xml file (string) % output: structure % Example: y=read_xml(fullfile(ifitpath, 'Data','iFit_iD80908.xml')); isstruct(y) % % % See also: read_json, read_yaml if nargin == 0 ||...
github
McStasMcXtrace/iFit-master
read_nrrd.m
.m
iFit-master/Libraries/Loaders/read_nrrd.m
20,278
utf_8
1fcaa003365b14f66b33804338082d00
function frame = read_nrrd(filename) % read_nrrd Read a NRRD Nearly Raw Raster Data file % % http://teem.sourceforge.net/nrrd/index.html frame = []; if nargin == 0 || any(strcmp(filename, {'identify','query','defaults'})) nrrd.name ='NRRD Nearly Raw Raster Data'; nrrd.method =mfilename; ...
github
McStasMcXtrace/iFit-master
read_tdms.m
.m
iFit-master/Libraries/Loaders/read_tdms.m
75,526
UNKNOWN
d0cab3d90ccb7e0c00f5a4fa5a4cb179
function data=read_tdms(filename) % read_tdms read a LabView TDMS file % data=read_tdms(filename) % % References: % http://www.mathworks.com/matlabcentral/fileexchange/30023-tdms-reader % Jim Hokanson (2011) BSD % % Input: filename: LabView TDMS file (string) % output: structure % Example: y=read_tdms(...
github
McStasMcXtrace/iFit-master
read_adsc.m
.m
iFit-master/Libraries/Loaders/read_adsc.m
3,421
utf_8
9b279b3651e2ee5221b5743f255f9700
% data = read_adsc(filename) read an ADSC X-ray detector image % % Read an image file written by an ADSC detector. % ADSC detectors write images in the "SMV" file format which consists of a text header and uncompressed image. % ADSC_read takes the file 'fname' and returns the image information in 'imag' and text...
github
McStasMcXtrace/iFit-master
read_inx.m
.m
iFit-master/Libraries/Loaders/read_inx.m
3,582
utf_8
6a477cdd825eddc482efb052570e4d47
% READ_INX read the INX files -ILL standards % % Usage: s = read_inx(filename,{instrument}) % % % Option: % instrument = 'in6', 'in5', 'in16', ..., default 'IN5' % to make the difference between the 4-columns and 3-columns % data ...
github
McStasMcXtrace/iFit-master
read_fig.m
.m
iFit-master/Libraries/Loaders/read_fig.m
4,468
utf_8
a00de02ec414feef38546baae99edda7
function s = read_fig(filename) % read_fig Wrapper to directly read Matlab Figures % s = read_fig(filename) % % Input: filename: FIG filename or graphic handle % output: structure % Example: f=figure; h=surf(peaks); s=read_fig(h); close(f); isstruct(s) % % % See also: read_idl, read_lvm, read_tdms, read_igor s=[]; ...
github
McStasMcXtrace/iFit-master
read_bruker.m
.m
iFit-master/Libraries/Loaders/read_bruker.m
33,560
utf_8
62e51936601a36b53c70e9a2077eaaa6
function data = read_bruker(file) % read_bruker read a Bruker NMR data set % the argument can be any file from the NMR data set directory % which should contain % a 'acqus', 'pdata/1' directory, 'fid' or 'ser' % % data = read_bruker(file) % data = read_bruker(directory) % % Credits: % DOSYToolbox, Copyrig...
github
McStasMcXtrace/iFit-master
read_jeol.m
.m
iFit-master/Libraries/Loaders/read_jeol.m
33,351
utf_8
195617a8826199f9458082bed177c966
function data = read_jeol(file) % READ_JEOL read a Jeol NMR file % the argument can be any file from the NMR data set directory % which should contain % a '.hdr' and '.bin' or '.asc' file. % the '.hdr' file contains tokens 'x_sweep','x_freq','x_start','x_stop' % OR a '.jdf' file % % Credits: DOSYToolb...