after some experiments, i think it's a doxygen trouble, because i've got the same results with C++ codes. Or it's a bad configuration of doxygen, but i tried a lot things...
I'm not sure if doxygen is able to do such a thing, but i asked them if i was mistaking. I will give you some infos when i have got some.
Maybe i'm not the only user needing this capability, and it should be great to have a special tag to remove some code from the documentation, for example "% remove this code from the documentation" and "% end of removal"
the \cond and \endcond commands work fine when they are in the description of the function.
When they are used in the code, in order to exclude some part of the code, they don't work.
Here is a simple example, where i don't want to show the lines between \cond and \endcond in the generated code.
function [c] = sumM(a,b)
% sum function
%
% sum function detail description.
%
% Parameters:
% a : first data of type double
% b : second data of type double
%
% Return values:
% c : sum of a and b
% comment
c = a + b;
% \cond
% dummy code to exclude from the documentation
disp('function is ok')
% \endcond
I think that mtoc++ should analyse wether a commented line in the code begins with some special commands. Or maybe i don't use correctly your (great !!) tool.
first of all, thank you for these great and amazing tools.
I would like to know if MTOC++ is compatible with these 2 docygen's options :
- call graph and called by graph, to show dependancies between function (not only classes), using the dot tool
- INLINE_SOURCE to include the body of functions and classes directly in the documentation
I tried to activate these 2 options, but it doesn't seem to work with simple matlab function (see example below), even if it works fine with C or C++ code.
Thank you for your help,
Maxime
------ test1.m ------
function [imaOut] = test1(ima,alpha)
% fonction de test
in = alpha * ima;
c = somme (4,2);
in = in + c;
imaOut = test2 (in,9,3);
function [imaOut] = tuty(ima,beta)
% fonction de tuty
in = alpha * ima;
c = somme (4,2);
in = in + c;
imaOut = test2 (in,9,3);
------ test2.m ------
function [imaOut] = test2(ima,a,b)
% autre fonction de test
imaOut = a * ima + b;
------ somme.m ------
function [c] = somme(a,b)
% fonction de somme
%
% Parameters:
% a: 1ere valeur
% b: 2ere valeur
%
% Return values:
% c: sortie