Skip to content
Discussion options

You must be logged in to vote

我猜测你想将MATLAB代码排版,我也可能猜错了。

% appendix.tex
\chapter{MATLAB示例}
\inputminted{matlab}{LDA.m}
% main.tex
\documentclass{xdupgthesis}
\xdusetup{info/appendix=appendix.tex}
\usepackage{minted}
\setminted{linenos=true,numbersep=.5ex,breaklines,breakanywhere}
\begin{document}
\end{document}

LDA.m 代码来自 https://github.com/biometrics/openbr/blob/master/scripts/matlab/LDA.m

function [subspaceData]=LDA(X,classNo,varargin)
    useFixedEnergy = false;
    doDominantEig = true;
    doPCA = true;
    useFixedEig = false;
    energyPercentage = .98;
    ScaleW = 1;
    doDLDA = false;
    do_null = false;
    ...
    subspaceData.mean = Mean_Vector(:);
    subspaceData.mean2 = mean2(:);
    subspaceData.W1 = 

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
6 replies
@note286
Comment options

@HgHe-xdu
Comment options

@note286
Comment options

@HgHe-xdu
Comment options

@note286
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@HgHe-xdu
Comment options

@note286
Comment options

@HgHe-xdu
Comment options

Answer selected by note286
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants