Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: matrix in mata


From   Mintewab Bezabih <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: matrix in mata
Date   Fri, 27 Jan 2012 15:09:16 +0100

Dear Statalisters, 


I have done the following mata procedure to do an element by element division in mata. 


mata:
  Z = st_matrix("d")
  Y = st_matrix("e")
end
mata:
  X=Y:/Z
  X
end

However the results I get are identical values for each column in x. The figures in X and Y look so different that it is not possible to get identical values. There must be something that I did wrong in the coding. I appreciate it very much if anyone points that out to me

regards
minti
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index