Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
.Net DLL/WSDL Importer for Delphi 6.0.6.0
Movie Maker Timeline SDK Control 4.0
Australia Post eParcel For Magento 2 1.0.0
Magento Inventory Management Extension 1.0
CAD VCL: 2D/3D CAD in Delphi/C++Builder 14.1
Devart SSIS Data Flow Components 1.12
The .Net PDF Library 2020.1.5
ASP. NET C# PDF Software 2020.3.0
C# HTML to PDF 2020.3.1.1
Database Workbench Pro 5.7.0
Entity Developer 6.7
SentiMask SDK Trial 2.0.193121.0
SentiVeillance SDK Trial 7.3.20200302
ODBC Driver for MongoDB 1.3
ODBC Driver for Amazon Redshift 1.1
Top Code
ATN Site Builder 3.0
ATN Resume Finder 2.0
Excel Add-in for PostgreSQL 1.1
Excel Add-in for Salesforce 1.1
Invoice Manager by PHPJabbers 3.0
Aglowsoft SQL Query Tools 8.2
Excel Add-in for MailChimp 1.1
ADO.NET Provider for ExactTarget 1.0
PHP Review Script 1.0
ICPennyBid Penny Auction Script 4.0
Classified Ad Lister 1.0
Solid File System OS edition 5.1
Deals and Discounts Website Script 1.0.2
dotConnect for FreshBooks 1.8
Excel Add-in for Magento 1.6
Top Rated
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Structure Cut 1.0
File ID: 78300






Structure Cut 1.0
Download Structure Cut 1.0http://www.mathworks.comReport Error Link
License: Freeware
File Size: 10.0 KB
Downloads: 2
Submit Rating:
Structure Cut 1.0 Description
Description: As an example, suppose you had taken 155 seconds of data of the location (x,y,z) of a particle as a function of time (t). It is convenient to put that all into a struct, such as this one:

>> data

data =

t: [155000x1 double]
x: [155000x1 double]
y: [155000x1 double]
z: [155000x1 double]

If you wanted to extract the data taken between 15 and 20 seconds, you would normally need to type

index = find((data.t > 15) & (data.t < 20));
cut_data.t = data.t(index);
cut_data.x = data.x(index);
cut_data.y = data.y(index);
cut_data.z = data.z(index);

Tedious, and prone to typos! Using the function "struct_cut" you can do the same thing by just typing

index = find((data.t > 15) & (data.t < 20));
cut_data = struct_cut(data,{'t','x','y','z'},index);

If you want to apply different cuts to each element of the structure, just type

cut_data = struct_cut(data,{'t','x','y','z'},{i_t,i_x,i_y,i_z});

where "i_t", "i_x", etc are four different cut arrays you make elsewhere.

I tested this with ~10-100 megabyte data sets, and it runs really fast. Hopefully it will work well for larger arrays also, please let me know!

License: Freeware

Related: apply, struct cutdata indexif, Element, Structure, cut data, typingindex, typos, prone, quotstruct cutquot, thing, typecut data, struct cutdata zwhere, megabyte, larger

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 2



More Similar Code

Cut 2D X is an powerful automation component used for obtaining optimal cutting layouts for two dimensional surfaces.
Cut 2D X can be used for cutting rectangular sheets made of glass, wood, metal, or any other material used by industrial applications.
Cut 2D X can be used  within any programming enviroment such as Delphi, C++Builder, Visual Basic, Visual C++ etc.

Features:

Any length or width less than 1...



Real Cut 2D is a computer program used for obtaining optimal cutting layouts for two dimensional surfaces.Real Cut 2D can be used for cutting rectangular sheets made of glass, wood, metal, or any other material used by industrial...



Ever wanted to take a CSV file as input, cut it up
and only extract the fields that you want ?

Here's how!

$ cat cars.csv
Year,Make,Model,Length
1997,Ford,E350,2.34
2000,Mercury,Cougar,2.38

$...



A Minimum Cut Solver

This python script is for solving the ACM problem Q2914: Minimum Cut.
http://acm.pku.edu.cn/JudgeOnline/problem?id=2914

Instead of using Ford-Fulkerson method, I use Stoer and Wagner's Min cut...



This code optimises the parameters for the term structure of volatility (TSOV) applied to historical forward curves - see discussion in Harris in reference 1 below.

TSOVs avaible are:
TermType - 1 = sigma = A exp (-CT)
- 2...



A simple to use general purpose Tree data structure implementation in Ruby. Provides easy access methods for navigating the hierarchy, as well as for accessing the nodes. Also provides ability to marshal the entire tree structure.



CodeLifter.com offers free cut and paste java scripts such as background Effects, images & slideShows, and much more.



Cut-and-Paste Bookmark This Page Script is a javascript, with the help of this script the user can get help to create a bookmark on the visitor web site. On clicking that bookmark the visitor can get their liked phrases in that book. This script...



Data structure: Builing Linked-List Class is an article in which author describes the method of generating Linked-List with the help of functionalities of framework Class library. The author gives details about the process of utilizing...



Simple template structure is a simple script and is a content management tool which is used for creating websites. It uses php echo syntax tag. It also converts templates into HTML code. This script assigns content and specifies HTML code. All...

User Review for Structure Cut
- required fields
     

Please enter text on the image