Skip to content
Snippets Groups Projects
Select Git revision
  • d77f0692fbc94e546fba48454beca58765e6e93a
  • master default protected
  • dependabot/github_actions/shivammathur/setup-php-2.34.1
  • vsnetbeans_2600
  • release260
  • dependabot/github_actions/shivammathur/setup-php-2.33.0
  • delivery
  • revert-8462-exclipboard2
  • vsnetbeans_2599
  • release250
  • vsnetbeans_2499
  • apidocfixfornb25
  • vscode-named-output
  • release240
  • revert-7983-NETBEANS-7981
  • vsnetbeans_2399
  • apidoctake2
  • apidocmaven
  • release230
  • sdedic/project/reload
  • vsnetbeans_2299
  • 26
  • 26-rc3
  • 26-rc2
  • 26-rc1
  • 25
  • 25-rc2
  • 25-rc1
  • 24
  • 24-rc5
  • 24-rc4
  • 24-rc3
  • 24-rc2
  • 24-rc1
  • 23
  • 23-rc3
  • 23-rc2
  • 23-rc1
  • 22
  • 22-rc4
  • 22-rc3
41 results

HintsPanel.form

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    mean.m 890 B
    function varargout = mean(varargin)
    % normal mean value
    
    % <ITA-Toolbox>
    % This file is part of the ITA-Toolbox. Some rights reserved. 
    % You can find the license for this m-file in the license.txt file in the ITA-Toolbox folder. 
    % </ITA-Toolbox>
    
    narginchk(1,1);
    data = varargin{1};
    if numel(data)>1 %get mean over multiple instances and not over channel of each struct
        result = sum(data)/numel(data);
        
        resChannelNames = result.channelNames;
        for idxCh = 1:result.nChannels   %alter name field of all channels
            resChannelNames{idxCh} = ['mean' resChannelNames{idxCh}(4:end)];
        end
        result.channelNames = resChannelNames;
    else % mean over channels
        result = sum(data)/data.nChannels;
        result.channelNames = {['mean' result.channelNames{1}(4:end)]};
    end
    
    %% Add history line
    varargout{1} = ita_metainfo_add_historyline(result,'itaSuper.mean',varargin);
    end