Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • gitkeep
  • Sprint/2022-01
  • dev protected
  • Product/1406-SPPageDeployer
  • Topic/1448-configurableSPPageDeployer
  • Product/1215-gitlabCleanUp
  • Hotfix/913-slugUsage
  • Sprint/2020-10
  • Product/702-createUserProfile
  • Topic/758-userProfileApi
  • Sprint/2020-08
  • Product/627-updateSPPages
  • Topic/775-updateSPPages
  • v1.2.0
  • v1.1.4
  • v1.1.3
  • v1.1.2
  • v1.1.1
  • v1.1.0
20 results

README.md

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ita_show_struct.m 1.50 KiB
    function ita_show_struct(varargin)
    %ITA_SHOW_STRUCT - shows the contents of a struct
    %  This function shows the contents of a struct, considering the names and
    %  the information of each element.
    %
    %  Syntax:
    %   audioObjOut = ita_show_struct(inputStruct)
    %
    %  Example:
    %   testStruct = (itaValue1, itaValue2)
    %   ita_show_struct(testStruct);
    %
    %  See also:
    %   ita_toolbox_gui, ita_read, ita_write, ita_generate
    %
    %   Reference page in Help browser 
    %        <a href="matlab:doc ita_show_struct">doc ita_show_struct</a>
    
    % <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>
    
    
    % Author: Christian Haar -- Email: christian.haar@akustik.rwth-aachen.de
    % Created:  12-May-2011 
    
    
    %% Get Function String
    % thisFuncStr  = [upper(mfilename) ':'];     %Use to show warnings or infos in this functions
    
    %% Initialization and Input Parsing
    % all fixed inputs get fieldnames with posX_* and dataTyp
    % optonal inputs get a default value ('comment','test', 'opt1', true)
    % please see the documentation for more details
    sArgs        = struct('pos1_inputStruct','struct');
    [sArgs] = ita_parse_arguments(sArgs,varargin); 
    
    %%
    inputStruct = sArgs.inputStruct;
    fieldNames = fieldnames(inputStruct);
    fieldNamesChar = char(fieldNames);
    for idx = 1 : numel(fieldNames)
        disp([fieldNamesChar(idx,:) ' : ' num2str(inputStruct.(fieldNames{idx}))]);
    end
    
    %% Set Output
    % varargout(1) = {inputStruct}; 
    %end function
    end