From: Dan M. <dan...@mc...> - 2004-09-10 00:10:57
|
With matlab mex, I typically would do something like create myfn.c -- the C-mex file myfn.m -- a matlab.m file which is only comments for the help output then when I do 'help myfn' in matlab I get the help text. With the octave mex interface it seems like I can sort of get there by creating the .m file, but what I get for help output is type(file_in_loadpath('myfn.m')) If I execute that, I get the contents of myfn.m including the '%' comments which means I can't just paste a multi-line example into octave. I guess I can use awk or sed to strip the leading '%' and have the .m file really just be a text help file, but it would seem that it might be nice to have a more automated way of getting the help to work. Any suggestions? I don't mind hacking on the mex script if thats whats needed. Thanks -Dan -- |