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
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
ASP.NET 2.0 - Counting Microsoft Access Rows
This tutorial uses an asp:AccessDataSource and asp:FormView to perform the count, this tutorial will demonstrate in detail how this is easily accomplished. more>> This tutorial uses an asp:AccessDataSource and asp:FormView to perform the count, this tutorial will demonstrate in detail how this is easily accomplished.<<less
Alternating table rows javascript 1.0
An inobtrusive alternating row class script. It simply gives your table rows CSS classes odd and even. more>> An inobtrusive alternating row class script. It simply gives your table rows CSS classes odd and even.<<less
Easy Row Search 1.6
This script is very easy to configure, by entering some basic mysql details and information about the table you wish to search, you can scan one row in your table for text. The results are then shown and the search text highlighted red. more>> This script is very easy to configure, by entering some basic mysql details and information about the table you wish to search, you can scan one row in your table for text. The results are then shown and the search text highlighted red.<<less
Alternate row colours using MySQL 1.00
This tutorial teaches you how to number rows and give them alternate colours! more>> This tutorial teaches you how to number rows and give them alternate colours!<<less
MySQL Row To Form 1
Need a quick way to edit mysql data with php? This php function takes the name of a mysql table as its input and then builds a unique form for each row in the specified table. The php function checks to length of each field?s data in order to determine more>> Need a quick way to edit mysql data with php? This php function takes the name of a mysql table as its input and then builds a unique form for each row in the specified table. The php function checks to length of each field?s data in order to determine if it belongs in a textarea or input field. A unique and valid html form is then built with a uniquely identified update button for each row. This php script does not process the updating it only handles getting mysql field data into editable forms quickly.<<less
Add Row to a Database Table
In this tutorial you will learn how to add a row to a MySQL database using the power of PHP. This would work great for a comment board. more>> In this tutorial you will learn how to add a row to a MySQL database using the power of PHP. This would work great for a comment board.<<less
Random MySQL result-set 1.0
This sample script produces a result set of random rows from a table. It does so by populating one of the columns with a random number, and then doing a select statement that uses it to sort the results. more>> This sample script produces a result set of random rows from a table. It does so by populating one of the columns with a random number, and then doing a select statement that uses it to sort the results.<<less
Javascript hide table row 1.0
This article demonstrates how you can hide table row with javascript and how you can show it again by pressing a button. more>> This article demonstrates how you can hide table row with javascript and how you can show it again by pressing a button.<<less
Micro DB Manager 1.0
Micro DB Manager is a database abstraction class written in PHP using object oriented technologies. The class realize the following functionalities: * Connectiong to the databse * Executing queries * Converting results to associative more>> Micro DB Manager is a database abstraction class written in PHP using object oriented technologies. The class realize the following functionalities: * Connectiong to the databse * Executing queries * Converting results to associative array * Get selected rows * Get affected rows * Get last insert id * Get the number of executed queries * Get the execution time of the queries * Get error messages and codes<<less
Table Row and Column Highlighting
Create horizontal and vertical highlighting on your HTML tables. Highlighting is activated when the mouse hovers over a table cell. more>> Create horizontal and vertical highlighting on your HTML tables. Highlighting is activated when the mouse hovers over a table cell.<<less
H Shout 1.0
This simple PHP/MYSQL shoutbox uses only one table. The table only uses 5 rows. This program is commented fully, giving you a chance to learn more about php and mysql. more>> This simple PHP/MYSQL shoutbox uses only one table. The table only uses 5 rows. This program is commented fully, giving you a chance to learn more about php and mysql.<<less
IAM-XLS 1.0
This class can be used to generate Excel spreadsheets in XLS format. It can add text or numeric values to given rows and columns of a spreadsheet. The class may also execute a MySQL database query and generate a single spreadsheet with the more>> This class can be used to generate Excel spreadsheets in XLS format. It can add text or numeric values to given rows and columns of a spreadsheet. The class may also execute a MySQL database query and generate a single spreadsheet with the results of the query. The first row has the query result column names. The class stores the whole spreadsheet definition in XLS format in a class variable. The generated spreadsheet data can be served for download. The class detects the browser type and issues the specific headers to make the browser handle the spreadsheet data file properly.<<less
mySQLclass
This is mySQL class wich will help you with your mySQL problem. Its simply and do basic things like insert, update, delete rows... more>> This is mySQL class wich will help you with your mySQL problem. Its simply and do basic things like insert, update, delete rows...<<less