Dear all,
I need to devide one scalar/local through another and input the result into a matrix.
In the following, you find a simplified version of the syntax, which i use:

mata: st_numscalar("sum", z)
count
local a = r(N)
scalar define b = `sum'/`a' // (1) here scalar/local one ist divided through another
matrix define B = (.,.\.,.)
matrix B[1,1] = `b' // (2) here the result is entered into a matrix

Unfortuantely, neither step (1) nor (2) works. Can somebody help me to definie a version of the syntax, which works?