number of rows
INSERTROWS
INSERTROWS - Insert rows into a matrix at specific locations more>> INSERTROWS provides you a powerful mathematical tool which is able to insert rows into a matrix at specific locations.
C = INSERTROWS(A,B,IND) inserts the rows of matrix B into the matrix A at the positions IND. Row k of matrix B will be inserted after position IND(k)in the matrix A. If A is a N-by-X matrix and B is a M-by-X matrix, C will be a (N M)-by-X matrix. IND can contain non-integers.
If B is a 1-by-N matrix, B will be inserted for each insertion position specified by IND. If IND is a single value, the whole matrix B will be inserted at that position. If B is a single value, B is expanded to a row vector. In all other cases, the number of elements in IND should be equal to the number of rows in B, and the number of columns, planes etc should be the same for both matrices A and B. If any of the inputs are empty, C will return A.
Examples:
% the size of A,B, and IND all match
C = insertrows(rand(5,2),zeros(2,2),[1.5 3])
% the row vector B is inserted twice
C = insertrows(ones(4,3),1:3,[1 Inf])
% matrix B is expanded to a row vector and inserted twice (as in 2)
C = insertrows(ones(5,3),999,[2 4])
% the whole matrix B is inserted once
C = insertrows(ones(5,3),zeros(2,3),2)
[C, RA, RB] = INSERTROWS(...) will return the row indices RA and RB for which C
corresponds to the rows of either A and B.
[c,ra,rb] = insertrows([1:4].,99,[0 3]) ;
c. % -> [99 1 2 3 99 4] ;
c(ra). % -> [1 2 3 4] ;
c(rb). % -> [99 99] ;
To insert columns, planes, etc., you can permute the inputs and ipermute the result.
A = ones(4,3) ; B = zeros(4,1) ;
C = insertrows(permute(A,[2 1]), permute(B,[2 1]),1) ;
C = ipermute(C,[2 1]) ;
See also PERMUTE, IPERMUTE, RESHAPE, CAT
Requirements:
- MATLAB Release: R13
Number To Amount Word 1.1
Number To Amount Word is considered as a smart and useful PHP class that can be used to spell numbers with English words. more>>
Number To Amount Word 1.1 is considered as a smart and useful PHP class that can be used to spell numbers with English words.
<<lessNumber library of functions 1.0
A library of functions extending the number class (integers and float values): rounding and truncation, data type conversion. more>> A library of functions extending the number class (integers and float values): rounding and truncation, data type conversion.<<less
Number formatter 1.0
This easy to use number formatting script will allow you to format your numeric fields easily. You can specify the default format, pass custom long AND short formats easily with ONKEYPRESS. (For example: a telephone number can be formatted as (###) more>> This easy to use number formatting script will allow you to format your numeric fields easily. You can specify the default format, pass custom long AND short formats easily with ONKEYPRESS. (For example: a telephone number can be formatted as (###) ###-#### OR ###-#### depending on how many characters your user enters). This script can be used for any numerical format, such as dates, phone numbers, social security numbers, etc. If your user goes beyond the length of the format (a telephone extension, for example) it leaves the remaining input untouched. Designed to be easily customizable, this script can be pasted in quickly and easily! You use 1 script for unlimited fields, and they can each be formatted in a different way. This script now includes templates for formating common number entries, such as telephone numbers and SSNs. You can easily change or create your own formats.<<less
Number to Word Converter
Number to Word Converter is considered to be a great and useful Perl script that basically converts a number into words. more>> Number to Word Converter is considered to be a great and useful Perl script that basically converts a number into words. It can only convert numbers less than or equal of novemdecillion quantity. It has a complete input validation process.<<less
Number to Text Converter 1.1
Converts a number into a textual description, such as 100025 into "one hundred thousand and twenty-five". Supports any size number, and can format it for currency (Dollars and Cents) and a couple other options. more>> Converts a number into a textual description, such as 100025 into "one hundred thousand and twenty-five". Supports any size number, and can format it for currency (Dollars and Cents) and a couple other options.<<less
Number to Persian text 1.0.0
Number to Persian text is created to be a smart and useful PHP class that can be use to spell numbers using Persian words. more>>
Number to Persian text 1.0.0 is created to be a smart and useful PHP class that can be use to spell numbers using Persian words.
Number to string class 1.0
Number to string class is created to be a PHP class that can be used to spell Indian money amounts with English words. more>> Number to string class 1.0 is created to be a PHP class that can be used to spell Indian money amounts with English words.<<less
Guess number game 1.0
This is a classic guessing game, where you have a number and you must guess if the next number will be bigger or smaller than the actual one. Simple code made with sessions, all the game in a single page, css based for easy graphical modifications, high more>> This is a classic guessing game, where you have a number and you must guess if the next number will be bigger or smaller than the actual one. Simple code made with sessions, all the game in a single page, css based for easy graphical modifications, high score table<<less
Turing Number 1.1
This script generates and checks a turing number. A turing number is a number the user has to read and copy in order to be able to validate a form. This avoids automated submissions (bots...). There is a version using a MySQL database, and another more>> This script generates and checks a turing number. A turing number is a number the user has to read and copy in order to be able to validate a form. This avoids automated submissions (bots...). There is a version using a MySQL database, and another version (available on the site - see the link at the top of the script page) that uses sessions instead, so you dont need MySQL on your server.<<less
Mouse Over Table Rows 1.0.0
As CSS can not achieve this on every browsers, javascript is a good solution to be able to highlight rows on mouse over. Live Demo. more>> As CSS can not achieve this on every browsers, javascript is a good solution to be able to highlight rows on mouse over. Live Demo.<<less
Guess a number 0.9
The user must guess a number within a range (1 to 10/100/1,000/10,000). The script will let the users know whether the number is smaller or bigger than the one introduced in the form. User must guess the number in the minimum number of tries. more>> The user must guess a number within a range (1 to 10/100/1,000/10,000). The script will let the users know whether the number is smaller or bigger than the one introduced in the form. User must guess the number in the minimum number of tries.<<less
Guess-a-Number Game 1.01
Welcome to the Guess-a-Number Game - An online guessing game for visitors. Guess-a-Number is a raffle-type system. It allows people to pick a number from a list, and on a pre-specified date, the administrator will run the random number selector, which more>> Welcome to the Guess-a-Number Game - An online guessing game for visitors. Guess-a-Number is a raffle-type system. It allows people to pick a number from a list, and on a pre-specified date, the administrator will run the random number selector, which will log and display the lucky guessers. Includes numerous options & features. Web developers, attract and keep your visitors at your site. Better yet, give them a reason to bookmark your site; a reason to come back... to see if theyve won! Directions for setting up the Guess-a-Number Game are provided in the customization file. Multiple games can be setup by incrementing the numbers in the filenames and tweaking a few files. Further details for running multiple games is also provided. In addition, Guess-a-Number is also available in ASP, which can use either MS Access or MySQL.<<less
Magic Number Guessing Game 1
This is a magic number guessing game. You guess any number below 63, and it will tell you what your secret number is. more>> This is a magic number guessing game. You guess any number below 63, and it will tell you what your secret number is.<<less
Generate Random Numbers
A random Number generator list. This script will generato a list of random numbers that are not repeated in the list. Very useful in generating lotto numbers or anything else that you can not have repetitive numbers more>> A random Number generator list. This script will generato a list of random numbers that are not repeated in the list. Very useful in generating lotto numbers or anything else that you can not have repetitive numbers<<less