Dear all,
Today I was reading the Function Reference when it confused me that the argument for var() or sd() should be a list or a series. However, having a one-column matrix (named MAT) at hand, I tried
scalar sdM = sd(MAT)
and obtained a correct result. When a matrix with multiple columns was fed in, an error was not slow to arrive.