[Scilab-users] opposite to 'diag' keyword
    jbaudais@insa-rennes.fr 
    Jean-Yves.Baudais at insa-rennes.fr
       
    Wed Jun 17 09:14:39 CEST 2015
    
    
  
Hello,
Le 17/06/2015 09:05, paul.carrico at free.fr a écrit :
> The question is quite basic: I'm trying to opposite to 'diag' keyword in order to build a diagonal matrix from a vector, but I fail so far ... what is the trick?
   The diag help says "diagonal including or extracting"
 > diag([1 2])
gives the matrix [1 0;0 2]
   Is it the "opposite" you want?
--Jean-Yves
    
    
More information about the users
mailing list