Hi,
there is this nice way to construct new series with the use of "...?
... :"
But this method seems not to work for matrices. The ".>" operator
just works 'on his own'.
<hansl>
nulldata 10
set optimizer bfgs
series test=normal()
matrix testm={test}
series ytest=test>0
matrix ytestm=testm.>0 #this works
series mtest = ytest ? 10 : 2
print ytest mtest -o
matrix mtestm = (ytestm.>0) ? 10 : 2 #this works not
eval mtestm
matrix mtestm=zeros(rows(ytestm),1)
loop for i=1..rows(ytestm) -q
matrix mtestm[i] = (ytestm[i]>0) ? 10 : 2
endloop
eval mtestm
<hansl>
Cheers
Leon