Important: Please read the installation page for details about how to install the toolboxes. $\newcommand{\dotp}[2]{\langle #1, #2 \rangle}$ $\newcommand{\enscond}[2]{\lbrace #1, #2 \rbrace}$ $\newcommand{\pd}[2]{ \frac{ \partial #1}{\partial #2} }$ $\newcommand{\umin}[1]{\underset{#1}{\min}\;}$ $\newcommand{\umax}[1]{\underset{#1}{\max}\;}$ $\newcommand{\umin}[1]{\underset{#1}{\min}\;}$ $\newcommand{\uargmin}[1]{\underset{#1}{argmin}\;}$ $\newcommand{\norm}[1]{\|#1\|}$ $\newcommand{\abs}[1]{\left|#1\right|}$ $\newcommand{\choice}[1]{ \left\{ \begin{array}{l} #1 \end{array} \right. }$ $\newcommand{\pa}[1]{\left(#1\right)}$ $\newcommand{\diag}[1]{{diag}\left( #1 \right)}$ $\newcommand{\qandq}{\quad\text{and}\quad}$ $\newcommand{\qwhereq}{\quad\text{where}\quad}$ $\newcommand{\qifq}{ \quad \text{if} \quad }$ $\newcommand{\qarrq}{ \quad \Longrightarrow \quad }$ $\newcommand{\ZZ}{\mathbb{Z}}$ $\newcommand{\CC}{\mathbb{C}}$ $\newcommand{\RR}{\mathbb{R}}$ $\newcommand{\EE}{\mathbb{E}}$ $\newcommand{\Zz}{\mathcal{Z}}$ $\newcommand{\Ww}{\mathcal{W}}$ $\newcommand{\Vv}{\mathcal{V}}$ $\newcommand{\Nn}{\mathcal{N}}$ $\newcommand{\NN}{\mathcal{N}}$ $\newcommand{\Hh}{\mathcal{H}}$ $\newcommand{\Bb}{\mathcal{B}}$ $\newcommand{\Ee}{\mathcal{E}}$ $\newcommand{\Cc}{\mathcal{C}}$ $\newcommand{\Gg}{\mathcal{G}}$ $\newcommand{\Ss}{\mathcal{S}}$ $\newcommand{\Pp}{\mathcal{P}}$ $\newcommand{\Ff}{\mathcal{F}}$ $\newcommand{\Xx}{\mathcal{X}}$ $\newcommand{\Mm}{\mathcal{M}}$ $\newcommand{\Ii}{\mathcal{I}}$ $\newcommand{\Dd}{\mathcal{D}}$ $\newcommand{\Ll}{\mathcal{L}}$ $\newcommand{\Tt}{\mathcal{T}}$ $\newcommand{\si}{\sigma}$ $\newcommand{\al}{\alpha}$ $\newcommand{\la}{\lambda}$ $\newcommand{\ga}{\gamma}$ $\newcommand{\Ga}{\Gamma}$ $\newcommand{\La}{\Lambda}$ $\newcommand{\si}{\sigma}$ $\newcommand{\Si}{\Sigma}$ $\newcommand{\be}{\beta}$ $\newcommand{\de}{\delta}$ $\newcommand{\De}{\Delta}$ $\newcommand{\phi}{\varphi}$ $\newcommand{\th}{\theta}$ $\newcommand{\om}{\omega}$ $\newcommand{\Om}{\Omega}$
if nargin <1
filename = '../ html/ index_tours.php'
fid = fopen(filename, 'wt')
if fid <= 0
error('Unable to open file')
list_ext = {...
{'introduction' 'Introduction'} ...
{'wavelet' 'Wavelet Processing'} ...
{'coding' 'Approximation, Coding and Compression'} ...
{'denoisingsimp' 'Simple Denoising Methods'} ...
{'denoisingwav' 'Wavelet Denoising'} ...
{'denoisingadv' 'Advanced Denoising Methods'} ...
{'pde' 'PDEs and Numerical Analysis'} ...
{'audio' 'Audio Processing'} ...
{'multidim' 'Higher Dimensional Signal Processing'} ...
{'graphics' 'Computer Graphics'} ...
{'optimaltransp', 'Optimal Transport'} ...
{'optim' 'Optimization'} ...
{'segmentation' 'Segmentation'} ...
{'sparsity' 'Sparsity'} ...
{'inverse' 'Inverse Problems'} ...
{'fastmarching' 'Geodesic Processing'} ...
{'shapes' 'Shapes'} ...
{'meshproc' 'Mesh Processing'} ...
{'meshdeform' 'Mesh Parameterization and Deformation'} ...
{'meshwav' 'Multiscale Mesh Processing'} ...
}
pr = lambda x: fprintf(fid, [x '\n'])
prL = lambda: fprintf(fid, '\n')
pr(' <?')
GENERATE TOC %%%
pr('begin_toc(); ')
for iext in 1: length(list_ext):
ext = list_ext{iext}{1}
tit = list_ext{iext}{2}
pr(['toc_entry(''' tit ''', ''' ext '''); '])
pr('end_toc(); ')
prL()
GENERATE SECTIONS %%%
for iext in 1: length(list_ext):
ext = list_ext{iext}{1}
tit = list_ext{iext}{2}
a = dir([ext '_*.m'])
pr(['begin_tours(''' tit ''', ''' ext '''); '])
for k in 1: length(a):
tourname = a(k).name
fidt = fopen(tourname)
L = fgets(fidt)
L = strtrim(strrep(L, '%% ', ''))
fclose(fidt)
pr(['tour(''' tourname(1: end-2) ''', ''' L '''); '])
pr('end_tours(); ')
prL()
pr('? >')
fclose(fid)