Example Of Idempotent Matrix
if else example is a basic example of an if then else control structure.
Platforms: Windows, Mac, *nix, PHP, BSD Solaris
License: Freeware | Download (59): if else example Download |
Breadth first traversal of tree script is an example of the self-recursive generators. The first argument should be the tree root; children should be a function taking as argument a tree node and returning an iterator of the node's children.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Breadth first traversal of tree Download |
This script is an example of how to use the winreg module. The code had the first purpose of demonstrating the concept of a graphical shell built in Python. The shell was easily modified to make use of the Window's registry but retains traces of its original method of operation.
Platforms: Windows, Python,
License: Freeware | Download (51): Example For winreg Download |
It's a function that finds the minimum value of a two variables objective function with a deterministic zero order algorithm: simplex method. The input variables are:-fun: inline function of the objective function-init_point: initial point for the simplex method-step_size: initial dimension of...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Simple example of the Simplex Method Download |
It finds the minimum of a n variables function with the Particle Swarm Optimization Algorithm.% The input parameters are:% -func: it's the objective function's handle to minimize% -numInd: it's the number of the swarm's elements% -range: it's the range in which the elements must be created%...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Simple example of PSO algorithm Download |
The self-contained script demonstrates excess, volatility driven growth, in a rebalanced portfolio.Based on the paper "Benchmarking and Rebalancing" by Gabay and Herlemont, yats.com, 19 Septembre 2007, this script reproduces example 1, showing the long-term rebalancing excess growth rate g*.There...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Example of Volatility Pumping Download |
This is the first example of Computational Physics, Modeling and Simulating a Physical SystemsEx1: Kepler's Laws
Platforms: Matlab
License: Freeware | Size: 337.92 KB | Download (41): Computational Physics - Example No.1 Download |
This zip file contains an example of some resources to help engineering students learn MATLAB. They comprise a flash file with voiceover (select player.html to run this) which will discuss some of the m-files also included. The example included is for an introduction to control, but there are...
Platforms: Matlab
License: Freeware | Size: 4.53 MB | Download (40): Getting started with MATLAB (control engineering example) Download |
The ref() returns row-echelon-form of nxn matrix.Example>> a=[1 2 3 5; 2 4 5 6; 7 3 7 2; 2 4 1 8]>> ref(a)result show a row-echelon-form
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Row Echelon Form Download |
This is a simple example of how nested functions can simplify the writing of callback functions for writing continuously-running applications. Callback functions are used by timer objects and the various objects in the Test & Measurement Toolboxes (Data Acquisition Toolbox, Instrument Control...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Example: Using Nested Functions for Timers Download |
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...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Shift matrix Download |
Case of study: "Capacity Energy Storage Solution".Dual problem of SMES, replacing inductors with capacities.
Platforms: Matlab
License: Freeware | Size: 849.92 KB | Download (45): Simple Example of Simulated Annealing Optimization Download |
The program searches for a girth 12 QC-LDPC code given size of sub-matrix, row and column weights. The configuration of sub-matrices could also be changed. The program offers flexibility in constructing girth-12 QC-LDPC codes compared to other algorithms. The program builds a Tanner graph by...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): Felxible Construction of Girth 12 QC-LDPC Codes Download |
It is used to generate useful solutions to optimization and search problems. Genetic algorithms belong to the larger class of evolutionary algorithms, which generate solutions to optimization problems using techniques inspired by natural evolution, such as inheritance, mutation, selection, and...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Simple example of genetic algorithm for optimization problems Download |
The program searches for a girth 10 QC-LDPC code given size of sub-matrix, row and column weights. The configuration of sub-matrices could also be changed. The program offers flexibility in constructing girth-10 QC-LDPC codes compared to other algorithms. The program builds a Tanner graph by...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): Construction of Flexible Girth10 QC-LDPC Codes Download |
%Input:%Suppose you have a file that lists the occurences of every n-gram,%and has a data format looks like (%s %s ... %d):%hello 367%word 5754%Output%Plot a JPG figure and saves it in the data files' parent directory
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): An example of Zipf' law Download |
Up to now, to find the first non-zero element of a matrix along a column (for example) user might:1. Use for-loop with FIND command for j=1:size(A,2) ... = find(A(:,j), 1, 'first'); end 2. Use other vectorized methods, often time not very straight-forwards (MAX, LOGICAL, SPARSE, etc...). This...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Vectorized FIND with 'FIRST' option Download |
This is a good example of the integer midpoint circle algorithm. No pixels are missed or repeated.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Draw a circle in a matrix / image Download |
Java::Import::Examples is an example of how to use Java::Import to call into Java classes. Making RMI calls from Perl One nice thing about Java is the extremely straight forward manner in which it allows you to make calls to remote objects residing on distant servers. Many people use this...
Platforms: *nix
License: Freeware | Size: 28.67 KB | Download (106): Java::Import::Examples Download |
Langtons Ant project is an example of a finite-state cellular automata. The ant (or ants) start out on a grid. Each cell is either black or white. If the ant is on a black square, it turns right 90° and moves forward one unit. If the ant is on a white square, it turns left 90° and moves...
Platforms: *nix
License: Freeware | Size: 35.84 KB | Download (130): Langtons Ant Download |