[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange syntax
From: |
Sergei Steshenko |
Subject: |
Re: Strange syntax |
Date: |
Wed, 28 Nov 2012 03:09:48 -0800 (PST) |
----- Original Message -----
> From: bigmealy <address@hidden>
> To: address@hidden
> Cc:
> Sent: Wednesday, November 28, 2012 12:55 PM
> Subject: Strange syntax
>
> Hi,
>
> I am currently trying to understand what is happening in line 59 of the file
> delaunayn.m
> Firstly, I can't find any documentation around "__delaunayn__" as
> a seperate
> function, so I can only assume that it's some special syntax relating to the
> function itself. Can anyone shed any light?
> I've also tried applying the curly braces modifier to my data to see what
> the effect there is, but it tells me "matrix cannot be indexed with
> {".
> Again, can anyone shed any light?
>
> Many thanks,
>
> Bigmealy
>
> 53 function T = delaunayn (pts, varargin)
> 54
> 55 if (nargin < 1)
> 56 print_usage ();
> 57 endif
> 58
> 59 T = __delaunayn__ (pts, varargin{:});
>
>
>
> --
> View this message in context:
> http://octave.1599824.n4.nabble.com/Strange-syntax-tp4647311.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>
Regarding '{:}' - look up cell arrays in Octave documentation.
Regarding '__delaunayn__' - it's a "private" function not intended to be used
directly by end user, that's why it is not documented.
Regards,
Sergei.