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
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Australia MyPost shipping For Magento 2 1.0.0
Australia Post eParcel For Magento 1.1.1
Source Control for SQL Server 2.0
Answers phpSoftPro 3.12
Exlcart 2.0
School College ERP 1.3.2
White-label Grocery Delivery App Solution 2.0
Top Code
iScripts EasySnaps 1
iScripts EasyIndex 1
iScripts NetMenus 2.0
ATN Site Builder 3.0
IcrediBB Bulletin Board System 1.0
PHP MLM Software 2.0.1
GnuWin64 64
OpenCV Delphi wrapper 1.0
PAWS 0.2
Hotel Management System Restaurant Version 5.25
Creating Lists Using The Android ListActivity 1.0
Learning Management Systems
ASP Chat Script
Complete ASP Chat Application
ASP Chat Application 2.0
Top Rated
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.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
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
Extended array indexing 1.0
File ID: 85067






Extended array indexing 1.0
Download Extended array indexing 1.0http://www.iplocationscript.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 3
Submit Rating:
Extended array indexing 1.0 Description
Description: Given an array, it is possible to imagine a virtual array formed by padding the original array out in all directions. Valid subscripts for this virtual array range through all the negative and positive integers, without regard to the size of the original. This function implements this idea.

The padding out can be done in many ways. The following are implemented: using a constant value; replicating the border elements of the original; tiling the virtual array with copies of the original; tiling the virtual array with copies that have been flipped so that there is mirror symmetry along the borders of every copy. A different rule may be specified for each dimension.

The function is related to padarray, repmat and circshift, and padarray's option strings have been retained for consistency. However, exindex is more flexible than any of these; for example, the array can be cropped as well as extended, and indeed arbitrary indexing into the virtual array is allowed.

The function is easy to use:

exindex(arr, s1, s2, ...)

is equivalent to v(s1, s2, ...) where v stands for the virtual extended array. If one rule is to apply to all dimensions it can be specified with

exindex(arr, s1, s2, ..., rule)

or if different rules apply to different dimensions they can be specified with

exindex(arr, s1, r2, s2, r2, ...)

License: Shareware

Related: option, padarrays, circshift, Strings, retained, consistency, repmat, padarray, Array

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

File Size: 10.0 KB

Downloads: 3



More Similar Code

The code uses array indexing to implement shifting of the matrix. It is about 2.5 times faster than using interp2 with 'nearest neighbor' option for shifting of the matrices. Inspiration for optimized array indexing comes from a snippet on circular shift in: "MATLAB array manipulations tips and tricks" guide by Peter J. Acklam (http://home.online.no/~pjacklam).



An array of antenna elements is a spatially extended collection of N similar radiators or elements,



3D Array Factor of a 4x4 planar array antenna calculated using general formulas and then plotted in 3D format.
"AB" shows the excitation amplitude of the elements and "AB_phase" shows their phases.
Elements are placed...



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,...)...



Flatten a nested array/tuple



EDFT (Extended Discrete Fourier Transform) algorithm produces N-point DFT of sequence X where N is greater than the length of input data. Unlike the Fast Fourier Transform (FFT), where unknown readings outside of X are zero-padded, the EDFT...



Given the coefficients of the characteristic polynomial the Routh-Hurwitz array is created and printed. Additionally, this method shows some results from the array relating to the stability of the system.



No error checking
a very basic function easy to understand

Given an array X of size [m,n]
output is an array of size [m,n]
the rows of the output array sum to 1



Accepts a 1-dimensional struct array (in the format 1xn) and converts it into a cell array. The first row of the cell array has the struct's field names in each column; the data from each of those fields for each entry in the struct array appears...



Extended compact genetic algorithm (ECGA) is an algorithm that can solve hard problems
in the binary domain. ECGA is reliable and accurate because of the capability of
detecting building blocks, but certain difficulties are encountered...

User Review for Extended array indexing
- required fields
     

Please enter text on the image