usage mat2avs(tstep,eletypes,filename); or mat2avs(filename); tstep = totalstep; eletypes = 1; % for 'quad'; mat2avs(tstep,eletypes); uiload eletypes = 1; % for 'quad'; % or 2 for tri -------------------------- filename = 'refinee' mat2avsr runs from the current workspace type help mat2avsr, if the variable is in the current workspace Reza