image thumbnail

updated 8 days ago

addStructs by Dave

Adds the numeric values in two structures. (structure, struct, add)

addStructs(S1, S2)

image thumbnail

updated 1 month ago

Convert Licor 81x file to Matlab structure by Jack Peterson

Converts a .81x Licor file to a Matlab structure (licor, structure, 81x)

licorify(filename)

image thumbnail

updated 2 months ago

Compare Structures by michael arant

Compares two structured variables recursively and notes where the two structures are different. (compare, equal, structure)

comp_struct(s1,s2,n1,n2,p,tol)

comp_struct(s1,s2,prt,pse,tol,n1,n2,wbf)

test_comp_struct.m

image thumbnail

updated 3 months ago

ShowStructTree.m by Richard Moore

Display the fields of a structure as a tree. (struct, structure, struct contents)

ShowStructTree(run,toprint)

image thumbnail

updated 4 months ago

CATSTRUCT by Jos (10584)

Concatenate/merge structures (v3.0, mar 2013). (concatenate, cell arrays, merge)

catstruct(varargin)

image thumbnail

updated 5 months ago

transpose_structure by Alex Liberzon

transpose_structure(s) transposes all the fields in the structure. useful for later cat(1,s.field) (structure)

transpose_structure(s)

image thumbnail

updated 8 months ago

Structure Overwrite and Merge by Daniyal Awan

To Overwrite and Merge two structures. Both overwrite and Merge are optional. (struct, structure, structure overwrite)

overwrite_merge(x,y,overwrite,merge)

image thumbnail

updated 1 year ago

Dynamically create a bus testing harness in Simulink by Adam Filion

Dynamically create a test harness in Simulink given a bus object with arbitrary underlying structure (simulink, bus, object)

bus_test_harness.m

image thumbnail

updated 1 year ago

RNEL_DB Object Oriented Database for Matlab by Joost Wagenaar

RNEL_DB is a class definition that facilitates the user to develop a database in Matlab. (database, classes, object oriented)

image thumbnail

updated 1 year ago

Brick Toolbox by Thomas Deneux

The Brick Toolbox is a set of utility functions for Matlab. (easy, fast, cool)

a=fn_readasciimatrix(filename,nheaders)

createhelpfiles(mfile)

data=fn_bin(data,bins,varargin)

image thumbnail

updated 1 year ago

Explode a structure by Itinerant Engineer

Explode a multi-level structure to find the lowest level field. (expand, explode, structure)

expstruc(X,sname,ll,lname,mems)

image thumbnail

updated 1 year ago

StructFind by Alexander Mering

Find all fields within a struct (array) where the search pattern is found (struct, structure, search)

StructFind(search_struct,search_object,varargin)

image thumbnail

updated 1 year ago

CatStruct2 by Hassan

Concatenates Structures (fields each depth are merged) (structure, construct, merge)

CatStruct2(Struct1, Struct2, SortOption)

image thumbnail

updated 1 year ago

Swap structure values into strings by Zachary Danziger

Finds fields of a structure in a string, and replaces them with the corresponding field values. (structure, string, field)

struct2strrep(strctr,sin)

image thumbnail

updated 1 year ago

Loads Preferences File by Tiago

This function loads a .mat file containing a structure and appends all the loaded fields and respect (load, file, preferences)

Load_Pref_File(prefs_default, prefs_file)

image thumbnail

updated 1 year ago

combineOpt by Andrey Popov

Combine user provided option's structure with a default one (structures, cell arrays, function)

combineOpt(options,default_options)

image thumbnail

updated 1 year ago

Get structure field names in recursive manner by Adam

Returns the field names of a structure, include the field names of any "sub-structures". (structure, field, fieldnames)

fieldnamesr(S,varargin)

image thumbnail

updated 1 year ago

Unfold structures by Thomas Schaffter

Unfold and show the content of the given structure. (structure, unfold, content)

unfold_structure(struct, root)

image thumbnail

updated almost 2 years ago

Recursive version of isempty() for cells and structures by Kevin Bartlett

Returns true for cell arrays/structures that are not empty, but have only empty cells/fields. (empty, isempty, cell)

isemptyr(X)

image thumbnail

updated almost 2 years ago

Graphically display the 'branch' structure of a struct variable by Andrew

Recursive function designed to display the 'branch' structure of struct variables. (structure, struct, explore)

structstruct(S)

image thumbnail

updated almost 2 years ago

Collapse by James Brooks

COLLAPSE - Reduces a scalar field within an arrayed structure to a single output vector (utilities, squeeze, flatten)

collapse(struc, fieldname, missing)

image thumbnail

updated almost 2 years ago

Plot an Array of Structures by Jonathan Sullivan

This utility will plot an array of structures. (plot, shaperead, array)

plotAS(varargin)

image thumbnail

updated almost 2 years ago

Workspace variables into functions by Mert

Reading multiple variables into a function and saving those variables in a loop (variables, function, loop)

myfunc1.m

image thumbnail

updated 2 years ago

Merge Structures by Grant Lohsen

Merges two structures of equal sizes. (structure, struct, merge)

fJoinStructures( InputStructure1, InputStructure2 )

image thumbnail

updated 2 years ago

structure factor by ben payne

Calculate structure factor based on positions of scatterers in real-space. (physics, scattering, structure)

structureFactor1d(L,scatrpos,numBZ)

structureFactor2d(Lx,Ly,scatrpos)

image thumbnail

updated 2 years ago

RenameField by Jan Simon

Rename a fields of a struct - fast C-Mex (struct, field, rename)

RenameField(S, Old, New)

uTest_RenameField(doSpeed)

image thumbnail

updated 2 years ago

Structure Cut by Sean Bryan

Utility function that applies the same cut to specified elements of a structure. (signal processing, structure, struct)

struct_cut( in, field_arr, indices )

image thumbnail

updated almost 3 years ago

Ideal Rankine Cycle Builder for .NET Component in C# Application by David Forstot

Calculate thermodynamic properties of ideal Rankine cycle: MATLAB and C# - Using MWStructArray. (mwstructarray, mwarray, c)

Out=XSteam(fun,In1,In2)

rankine(indata)

build_mcode.m

image thumbnail

updated almost 3 years ago

Recursively check fields of a structure exist by Matthew Arthington

Check fields of a structure exist at any depth. Can also check multiple field branches at any depth. (structure, field, isfield)

isfieldRecursive(varargin)

image thumbnail

updated almost 3 years ago

concatStruct by Gennady Erlikhman

Concatenate two structures as vectors or arrays. (concatenate, structure)

concatStruct(struct1,struct2,cat_method,dim)

image thumbnail

updated 3 years ago

Removing Simulink's State Order Dependency (Example 3) by Dan Lluch

Explores how to leverage the 'Structure with Time' Simulink data format to alleviate ordering ... (simulink, state, order)

Example3.m

makestatestruct(mdl)

image thumbnail

updated 3 years ago

vsize: a pedestrian variable decoder by us

VSIZE determines the full anatomy for named or unnamed variables of any depth and complexity (whos, ndims, size)

[p,par]=vsize(varargin)

image thumbnail

updated 3 years ago

xls2struct by Ashish Uthama

Load Excel file contents as a structure (data export, xls, xls excel read variab...)

xlsStruct=xls2struct(file,flag)

image thumbnail

updated 3 years ago

Matrix Structural Analysis by Hossein Rahami

A simple function for the analysis of two- and three- dimensional frame structures (planar frame, finite element, truss)

[Q,V,R]=MSA(D)

image thumbnail

updated 3 years ago

Create Bus Data for Models with Root-Level Bus Inputs by Mike Anthony

Convert a matrix of data into a Simulink.TsArray according to the root-level bus object definition. (bus, data export, bus signal)

CreateTsArrayFromBusObject(top_bus, data, time, varargin)

image thumbnail

updated 3 years ago

STRUCTCOMPVIS by Scott Hirsch

Use visual differencing tool to compare two structures. (structures, cell arrays, structure)

structcompvis(s1,s2)

image thumbnail

updated 3 years ago

Structure Fields To Variables by Matt J

Tool for importing/exporting workspace variables to or from a struct. (structure, import, variable)

assigns=structvars(varargin)

image thumbnail

updated 3 years ago

Two Dimensional Isostatic Truss Structures Solver ITSS2D by Marcos Cesar Ruggeri

This program solves isostatic truss structures through the method of joints and the internal loads. (2d, engineering, method)

image thumbnail

updated 4 years ago

struct_read/struct_write by Val Schmidt

Functions to ease the reading and writing of C data structures from and to binary files. (c, structure, binary)

struct_read(fid,format)

struct_write(fid,format,data)

image thumbnail

updated 4 years ago

Structure Learning Package for Bayes Net Toolbox by Olivier Francois

Structure Learning methods for Bayesian Networks (bayes, bayesian network, markov)

image thumbnail

updated 4 years ago

struct2ini by Dirk Lohse

struct2ini writes a given structure into an ini-file. (data import, data export, struct)

struct2ini(filename,Structure)

image thumbnail

updated 4 years ago

Compare anything by ygal

Compares quantatively structs, cell, array, element by element. (compare, structure, cell array)

compareAny(A,B)

image thumbnail

updated 4 years ago

FilterStruct by Robert M. Flight

Filters the fields of a structure array using a logical array. (filter, structure, field)

filterstruct(oldstruct,filterlogic)

image thumbnail

updated 4 years ago

struc2xls by Jeff Evans

Writes a data structure in MATLAB to an excel file. (data export, structure, data import)

struc2xls(filename,s,varargin)

image thumbnail

updated almost 5 years ago

SORTFIELDS by Ian Howat

SORTFIELDS sort values in all fields within a structure. (structures, cell arrays, field)

sortfields(varargin)

image thumbnail

updated 5 years ago

display_obj by Bernard Abayowa

display wavefront object structure (display obj, object, annotation)

display_obj(obj,texture)

image thumbnail

updated 5 years ago

readObj by Bernard Abayowa

readObj file into Matlab structure (data export, obj, read)

readObj(fname)

image thumbnail

updated 5 years ago

NanoVis: molecular visualizer by Giuseppe Romano

NanoVis: Molecular visualizer (chemistry, physics, atoms)

NanoVis(filename,flag_bond)

image thumbnail

updated 5 years ago

ini2struct by Andriy Nych

Function parses INI file and returns it as a structure with section names and keys as fields (data export, ini file, data import)

ini2struct(FileName)

image thumbnail

updated 6 years ago

Truss Analysis by Hossein Rahami

A very simple M-file for analysis of any truss (truss, analysis, mechanical modeling)

D=Data

TP(D,U,Sc)

[F,U,R]=ST(D)

Contact us