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 VCL for Delphi 1.0.0.0
ASP. NET C# PDF Software 4.5
LinqConnect Professional 4.8
CAD VCL: 2D/3D CAD in Delphi/C++Builder 14
wolfSSL 3.15.7
CAD DLL 14
AnyStock Stock and Financial JS Charts 8.4.2
ODBC Driver for SQLite 2.4
dotConnect for SugarCRM 1.7
dbForge SQL Complete 5.9
dbForge Studio for MySQL 8.0
.Net Runtime Library for Delphi 6.0.4.0
Scimbo 1.64
AnyMap JS Maps 8.4.2
GetOrgChart 2.5.3
Top Code
RED SNAKE GAME 1.1
PDF Focus .Net 4.0.1
Ticket Booking System 1.0
Network-Integrated Multimedia Middleware 2.2.0
Simple Webinterface Shopsystem for Shopping Carts 0.4
College Management System Script 1.0.4
Zip Zag 1.4
VisualEffectMotion Script 1.1
.NET Interop for Visual FoxPro Applications
Vapor compression cycle component models 1.0
Helpdeskphp - PHP Help Desk Software 1.0
Simple Skin segmentation 1.0
Visual FoxPro Functions/Class Libary 100
Dream Inspector 4.01
Help Desk Reloaded Free MySql PHP help desk software II.80
Top Rated
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
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
PHP Digital Download Script 1.0.4
Nested logical indexing 1.0
File ID: 85556






Nested logical indexing 1.0
Download Nested logical indexing 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 1
Submit Rating:
Nested logical indexing 1.0 Description
Description: NESTED Nested logical indexing
OUT = nested(IN) returns the final result of a list of nested logical indices. If IND_1 is a logical array and IND_(n+1) is a logical array of those that are TRUE within IND_(n) then nested(IND1,IND2,...) produces the resulting logical array of the nested logicals statements

If inputs are not logicals they will be transformed to a logical, with any non-zero value acting as TRUE

Example 1:
ind1=[1 0 1 1 0]; ind2=[1 0 1];
out=nested(ind1,ind2) % Ans: [1 0 0 1 0]

Example 2:
ind1=[1 0 1 1 0 1]; ind2=[0 1 1 1]; ind3=[0 1 1]; ind4=[1 0];
out=nested(ind1,ind2,ind3,ind4) % Ans: [0 0 0 1 0 0]

Example 3:
ind1=[1 0 1 1 0 1]; ind2={0 1 'a' 1};
out=nested(ind1,ind2) % Ans: [0 0 1 1 0 1]

License: Shareware

Related: transformed, nonzero, inputs, Statements, resulting, logicals, acting, Ind, nested

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

File Size: 10.0 KB

Downloads: 1



More Similar Code

http://simulations.narod.ru/
There are 3 subfolders with codes examples:
1) using vectors, no for loops, plot circle
2) logical indexing, find points inside circle
3) bsxfun, calculate and plot multiplication table.

There are videos in 3 parts:




Often I have to extract a subset of a two-dimensional array for further analysis. Usually I do this with logical indexing. But most often the problem with logical indexing is that I get a column vector which I then have to reshape or index into a...



How many sequences of any repeated element exist in a vector (and how long are they)? Example below.

T = COUNTREPETITIONS(A) returns the total number of repetitions of any
element in A. The n-th element in T is the number of...



VVAR uses a pre-existing "scratch" file to store variables and can be used to pre-allocate a huge array much faster than using zeros. On a MacBook Pro with 64 bit MATLAB and 4Gb RAM, creating an 8Gb double array with VVAR was 100x faster...



The "nest" generator function in this module is provided to make writing
nested loops easier to accomplish. Instead of writing a for loop at each
level, one may call "nest" with each sequence as an argument and...



Easy to use chain of dictionaries for crafting nested scopes or for a tree of scopes. Useful for analyzing AST nodes, XML nodes or other structures with multiple scopes. Can emulate various chaining styles including static/lexical scoping,...



DATAHASH - Checksum for Matlab array, struct, cell or file

Hash = DataHash(Data, Opt)
Data: Array of built-in types (U)INT8/16/32/64, SINGLE, DOUBLE (real or complex)
CHAR, LOGICAL, CELL, STRUCT (scalar or array, nested),...



C = NSTRUCT2CELL(S)
Recursive function that converts a nested struct S with a total of n sub-fields into a nx2 cell array C.
The first column of C lists the full names of the sub-fields and the second column contains the respective...



Lingo is an automatic indexing system for text files. It supports lemmatising, decomposition, multiword recognition and synonyms for recognized words. Lingo is flexibly configurable and easily extendable with new custom functions.



ioda is a fulltext indexing software, storing words and meta data. Handles logical operators, parenthesis and word distance values in queries. To use as supplement of an existing database or standalone. Runs as single prog., TCP server, CGI or...

User Review for Nested logical indexing
- required fields
     

Please enter text on the image