Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | ATOMS
File : Details

DiagonalMatrix

Returns the diagonal matrix from a square matrix.
(1202 downloads for this version - 1202 downloads for all versions)
Details
Version
1.0
Author
Marcos Pinto
Maintainer
Marcos Pinto
Category
License
Supported Scilab Version
5.4
Creation Date
March 13, 2014
Description
            It is a simple script to get the diagonal matrix from a square matrix.            
Files (1)
[275 bytes]
Miscellaneous file
Script to return the diagonal matrix from a square matrix.

Sintax: d = diagonal(A)

A -> square matrix.	  
News (0)
Comments (1)
Comment from Samuel Gougeon -- May 24, 2014, 01:39:33 AM    
Hello,
This feature is performed simply by the following: d = diag(diag(A))
Regards
Samuel