Ignore:
Timestamp:
Mar 6, 2015, 9:10:16 PM (9 years ago)
Author:
sommeria
Message:

various bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/time_series.m

    r880 r881  
    471471                DataOut.([VarName 'Histo'])(index,ind_start:ind_start+MaxIndex_new-MinIndex_new)=...
    472472                    DataOut.([VarName 'Histo'])(index,ind_start:ind_start+MaxIndex_new-MinIndex_new)+Field.([VarName 'Histo']);
    473                 VarVal=pdf2stat(Field.(VarName),Field.([VarName 'Histo']));% max of the current field
     473                VarVal=pdf2stat((Field.(VarName))',(Field.([VarName 'Histo']))');% max of the current field
    474474                for istat=1:numel(VarVal)
    475475                    DataOut.([VarName StatName{istat}])(index)=VarVal(istat);
     
    506506        DataOut.Time(index,1)=time(index);%
    507507    end
    508    
     508    index
    509509    % record the number of missing input fields
    510510    if ~isempty(errormsg)
Note: See TracChangeset for help on using the changeset viewer.