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
 Rapid PHP 2018 15.5 IBDAC 6.4 Online Course Booking Script 1.3.3 Database Workbench Pro 5.6.4 Job Portal Script 1.3.2 The C# PDF Library 5.2 PostgreSQL Data Access Components 6.0 Virtual Data Access Components 11.0 HTMLPad 2018 15.5 WeBuilder 2018 15.5 SentiMask SDK Trial 2.0.0 Track Order For Magento 2 1.0.0 Calendar 365 For Dynamics CRM 4.0 Scimbo 1.2 Odoo Furnito Theme 1.0
Top Code
 PostgreSQL Data Access Components 4.4 Database Workbench Pro 5.6.4 Availability Booking Calendar PHP 1.0 Online Course Booking Script 3.04 ATN Site Builder 3.0 ATN Resume Finder 2.0 PHP Review Script 1.0 IBDAC 6.4 ICPennyBid Penny Auction Script 4.0 Invoice Manager by PHPJabbers 3.0 The C# PDF Library 1.0 HTMLPad 2018 15.5 Aglowsoft SQL Query Tools 8.2 Classified Ad Lister 1.0 Solid File System OS edition 5.1
Top Rated
 VisualNEO Web 2018.12.15 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 Availability Booking Calendar PHP 1.0
File ID: 80310

File Size: 10.0 KB
 Submit Rating:
Description: zeroPadding2N makes zero padding of a given array to a 2^N length.

X_ = zeroPadding2N(X), for array X, returns the array with the necessary appended zeros so it reaches the next power of 2 length.

X_ = zeroPadding2N(X, N), for array X, returns the array with the necessary appended zeros so it reaches the next 2^N length.

Example:

If
X = [1 2 3];
then
X_ = zeroPadding2N(X) returns X_ = [1 2 3 0]
X_ = zeroPadding2N(X, 3) returns X_ = [1 2 3 0 0 0 0 0]
X_ = zeroPadding2N(X, 1) returns X_ = [1 2 3]

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

File Size: 10.0 KB

More Similar Code

### InSPIRE utility to remove zero... - Rex CheungTools / Development Tools

This program allows users to remove zero padding by deesired number (called offset) of layers of z
zero padding allows image processing to occur at the edges of the 3D image because many image processing filters take into account the values stored
in a neighborhood of voxels around the voxel being evaluated. Then the zeros could be removed by this program for further processing

### enumBase2 1.0 - Shawn MikulaTools / Development Tools

a = enumBase2(n) constructs a cell array that enumerates from 0 to (2^n - 1) in binary.

a = enumBase2(n,outputformat) constructs an array that enumerates from 0
to (2^n - 1) in binary. The type of array output is given by
...

### LCOVER present 1.0 - LU XPTools / Development Tools

Cover the 2^n-by-2^n square lacked of one piece by 'L' style and generate the gif animation file.

### nextperm 1.0 - Steven GregoryTools / Development Tools

Using lexical order on the set {1, 2, ..., N}, outputs the next permutation of the ordered tuple x. You have exhausted the list when All(nextperm(x,N) == x) is TRUE.

For example
nextperm([1 5 4], 5) returns [2 1 3]
...

### nhygepdf 1.0 - Antonio Trujillo-OrtizTools / Development Tools

This m-function returns the negative hypergeometric probability density function with parameters M, N and A at the values in X. Note: The density function is zero unless M, N and A are integers.

If a lot consists of M acceptable items...

### NFACTORK 1.0 - Matt FigTools / Development Tools

NFACTORK All integer factorings of integer N which have K elements.
T = NFACTORK(N,K) returns an array which has K columns such that all(prod(T,2)==N) is true.

Examples:

T = nfactork(24,3) % produces
T =
...

### InSPIRE: simple utility to pad zeros... - Rex CheungTools / Development Tools

This program allows users to specify the number of zero layers to wrap around a 3D image matrix.
Zero padding allows image processing to occur at the edges of the 3D image. Many image processing filters take into account the values stored in...

### Shortest Distance Between Two Lines... - Alexander BrodskyPython / Multimedia

Function uses algorithm from Dan Sunday internet site
http://softsurfer.com/Archive/algorithm_01...ment_to_Segment
L1, L2 includes two points in matrix of 2*n
where n are dimensions (3 in 3D).
d - shortest distance between two...

### Moving window standard deviation 1.0 - John D'ErricoTools / Build Tools

Occasionally I see a request for computation of a running, windowed standard deviation. This is easily accomplished using filter and the alternative formula for the standard deviation:

std = sqrt((sum(x.^2) - n*xbar.^2)/(n-1)).

### Routh Hurwitz Criteria using user... - Shabbeer HassanTools / Development Tools

RA=ROUTH(R,EPSILON) returns the symbolic Routh array RA for polynomial. The following special cases are considered:
1) If the first element of a row becomes zero
OR
2) If one encounters a row full of zeros.

>>syms...

User Review for Zero Padding 2^N