octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Array slicing in Octave


From: Jordi Gutiérrez Hermoso
Subject: Re: Array slicing in Octave
Date: Sun, 15 May 2011 09:45:13 -0500

On 15 May 2011 01:22, Hamid 2C <address@hidden> wrote:
> Thanks for your answer. Assignments like the one I mentioned before
> invoke one of these assign functions but how can I invoke index
> functions in Array.cc from the octave interpret?
> Commands like the ones below does not invoke any of those index
> functions. I couldn't find any command that triggers them. I just wish
> to know the role of these index functions.
>
> octave:1> b=1:10
> b =
>
>    1    2    3    4    5    6    7    8    9   10
>
> octave:2> b(2:6)
> ans =
>
>   2   3   4   5   6

That's likely to invoke the const versions of Array<t>::index (...).
Did you put breakpoints in there too? That seems to work for me.

- Jordi G. H.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]