Skip to content
Snippets Groups Projects
Select Git revision
  • 53d00e114d1b89c1243690d7799b015579860ad0
  • master default protected
  • dev protected
  • Issue/3130-onboardingUzK
  • Issue/3109-onboarding
  • Issue/2915-migrateSql2Linked
  • test_ci
  • Issue/xxxx-fixDevcontainer
  • Issue/xxxx-generateLatestTag
  • Issue/2980-fixContainerBuild
  • Issue/2967-fixGD
  • Issue/2944-gdShenanigans
  • Issue/2906-containerCron
  • Issue/2880-gd
  • petar.hristov-master-patch-9e49
  • Issue/2668-graphDeployer
  • gitkeep
  • Hotfix/xxxx-fastDeployment
  • Hotfix/2615-graphDeployerLag
  • Issue/2568-betterLogging
  • Issue/2518-docs
  • v2.1.11
  • v2.1.10
  • v2.1.9
  • v2.1.8
  • v2.1.7
  • v2.1.6
  • v2.1.5
  • v2.1.4
  • v2.1.3
  • v2.1.2
  • v2.1.1
  • v2.1.0
  • v2.0.1
  • v2.0.0
  • v1.2.11
  • v1.2.10
  • v1.2.9
  • v1.2.8
  • v1.2.7
  • v1.2.6
41 results

Helpers.cs

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ita_tutorialOverview.m 1.97 KiB
    function  ita_tutorialOverview(varargin)
    %ITA_TUTORIALOVERVIEW - gives an overview of all tutorials
    %  This function ++++ FILL IN INFO HERE +++
    %
    %  Syntax:
    %  ita_tutorialOverview
    %
    %
    %  Example:
    %     ita_tutorialOverview()
    %
    %  See also:
    %   ita_toolbox_gui, ita_read, ita_write, ita_generate
    %
    %   Reference page in Help browser 
    %        <a href="matlab:doc ita_tutorialOverview">doc ita_tutorialOverview</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: Martin Guski -- Email: mgu@akustik.rwth-aachen.de
    % Created:  15-Dec-2014 
    
    
    %% search all ita_tutorial_* files and read description
    allTutorialFiles = rdir([ita_toolbox_path filesep '**' filesep 'ita_tutorial*.m']);
    nFiles = numel(allTutorialFiles);
    
    fileNames            = cell(nFiles,1);
    tutorialDescriptions = cell(nFiles,1);
    
    
    
    for iFile = 1:nFiles
        [~,fileNames{iFile}] = fileparts(allTutorialFiles(iFile).name);
        fid = fopen(allTutorialFiles(iFile).name, 'r');
        firstLine = fgetl(fid);
        tutorialDescriptions{iFile} =  strrep(firstLine, '%% ', '');
        fclose(fid);
    end
       
    % add mian tutorial in front
    idxMainTutorial = find(strcmp(fileNames, 'ita_tutorial'));
    idxOverView     = find(strcmp(fileNames, 'ita_tutorialOverview'));
    sortOrder = [idxMainTutorial, setdiff(1:nFiles, [idxMainTutorial idxOverView])];
    
    fileNames = fileNames(sortOrder);
    tutorialDescriptions = tutorialDescriptions(sortOrder);
    
    %% display overview with links to tutorials
    fprintf('\n\n*** List of tutorials in ITA-Toolbox:   %s\n', repmat('*',1,85))
    columnWidth = max(cellfun(@length, fileNames));
    for iFile = 1:numel(fileNames)
        linkText = ['<a href = " matlab: edit ' fileNames{iFile} '">'   fileNames{iFile}  '</a> ' ];
        fprintf('* %s %s : %s \n', linkText, repmat(' ', 1,columnWidth-numel(fileNames{iFile} )), tutorialDescriptions{iFile})
    end
    fprintf('%s\n', repmat('*',1,125))
    
    
    %end function
    end