Sometimes a graphing function will not know in advance how many sub-plots are to be created. In this case hard-coding the number of rows and columns for the subplot command may not be possible. This function produces reasonable values for the row and column inputs to subplot given the number of desired sub-plots.
function [p,n]=numSubplots(n)
Inputs n - the desired number of subplots.
Outputs p -...
This function can find the maximum of constrained and unconstrained problems with using of genetic algorithm (real coding). Also the performance of GA is plotted vs. the number of generations (for 2D problems).
Article Directory Plugin for WordPress allows contributors to add articles to your WordPress blog. You have the control to allow or reject the article and publish it on your web site. Add customizable content to your WordPress blog in the shortest...
Generating random numbers in ASP applications for example to sort database records randomly and to display random number with registration form, order form etc., is clearly explained in this ASP tutorial and the sample coding aids to understand...
This recipe allows for individual number generation, and allows for generations of number ranges as well.
The recipe automatically memorizes numbers generated before and keeps them through out the running of the script. This recipe...
Pretty good way to check if a number is a power of two or not.
Implements a complementary-multiply-with-carry psuedo-random-number-generator. Period is 3636507990 * 2 ** 43487 (approximately 10 ** 13101).
This is a Number-puzzle game in which the elements on the screen should be sorted in ascending order (top to bottom)using arrow-keys.
This script will format a telephone number entered into a text box.
Numbers can be entered as 1234567890 and will automatically be formatted as (1as 12345690.
Static Huffman Coding and Decoding, and Adaptive Huffman Coding and Decoding for text compression
This file contains MATLAB functions, m-files, that do Huffman coding and arithmetic coding of integer (symbol) sequences. Complete coding may be done by calling an easy to use main program (or main function), where input argument is the sequences...
Arithmetic coding and decoding for Text Compression
Generic transmitter-receiver turbo coding scheme with puncturing and generic RSC coders. It represents the trellis structure and puncturing can be specified. BER plots can be output.
A WiMAX simulation where you can define the number of OFDM symbols to simulate, type of channel (SUI 1-6 or AWGN Channel), lots of BW and four kind of cyclic prefix. You can choose 4 different modulation as you can choose on IEEE 802.16d
A function that codes a string of chars with Lempel Ziv coding
Let us assume the following MIMO model: Y(k)=HX(k)+Y(k) This file can detect the number of sources, i.e the size of the vector X(k) from the received signal Y(k). The noise is assumed spatially white and the number of receivers must be...
Let us assume the following MIMO model: Y(k)=HX(k)+Y(k) This file can detect the number of sources, i.e the size of the vector X(k) from the received signal Y(k). The noise is assumed spatially white and the number of receivers must be...
Takes the data length, window length and window overlap length as inputs and returns the number of windows that will result. Will also return the start samples and end samples of each window if asked.
Number of packets arrived in one slot
The Programme is about CDMA coding and decoding. |