It is a simple script to get the diagonal matrix from a square matrix.
script
Upload date : 2014-03-18 17:16:24 MD5 : 50eb431f93a591707a4cdd7fcf942729 SHA1 : 0ddbe5f5147ab2a0b84a52b739cd2acf5d6b7dc2 Downloads : 2024
This script is useless. diag(diag(m)) does the same job, and much faster i guess (diag() is a built-in): --> m = grand(5,5,"uin",0,9) m = 3. 9. 6. 1. 0. 2. 4. 2. 9. 1. 3. 4. 1. 8. 8. 0. 5. 0. 5. 1. 9. 7. 4. 2. 7. --> diag(diag(m)) ans = 3. 0. 0. 0. 0. 0. 4. 0. 0. 0. 0. 0. 1. 0. 0. 0. 0. 0. 5. 0. 0. 0. 0. 0. 7.
This place is only for toolboxes with a defined structure (http://wiki.scilab.org/howto/Create%20a%20toolbox). Please put your file to https://fileexchange.scilab.org/.
+1