% not finished -- obsolete function [mval,mask] = optmask(A,fval) [m,m,T] = size(A); n = T+1; global nstate nstate = m; return