diff --git a/matlab/read_statistics_channel_ucf.m b/matlab/read_statistics_channel_ucf.m index 9b31864..72e71cc 100644 --- a/matlab/read_statistics_channel_ucf.m +++ b/matlab/read_statistics_channel_ucf.m @@ -13,7 +13,7 @@ function [tbeg,tend,nstat,um,uu,vv,ww,uv,uub,uvb,varargout] = read_statistics_ch % Open UCF file and read obj = ucf('verbosity',par.Results.verbosity,'debug',par.Results.debug); obj.open(file); - tend = obj.getSimulationTime(1); + tend = obj.getSimulationTime(); % Read first dataset [um,params] = obj.readSet(1,1); @@ -43,9 +43,9 @@ function [tbeg,tend,nstat,um,uu,vv,ww,uv,uub,uvb,varargout] = read_statistics_ch fxp = obj.readSet(1,8); fyp = obj.readSet(1,9); fzp = obj.readSet(1,10); - varargout{1} = fxp; - varargout{2} = fyp; - varargout{3} = fzp; + varargout{1} = fxp/nstat; + varargout{2} = fyp/nstat; + varargout{3} = fzp/nstat; end % Close file