Dear Octave Community

I'm preparing multiplot-capable plotting functions for the control package. I 
ran into a problem which boils down to the code in the attached example. I'd 
like to get the inputnames of all arguments of a function "testfun".

Currently, with

        ret1 = testfun (arg1, arg2, arg3)

nargin is 3 and inputname ranges from 1 to 3.
But with

        ret2 = testfun (args{:})

nargin is still 3 but only inputname(1) exists while inputname(2) and 
inputname(3) give errors. Therefore I must find an alternative to inputname or 
an alternative to nargin which counts input arguments the same way as inputname 
does. Do you know how to circumvent this problem?

Thanks for any help and best regards,
Lukas



Attachment: example.m
Description: Binary data

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to