Support end and expressions in numeric indices #52

Open
opened 2026-08-02 09:59:14 +00:00 by UserCurt · 0 comments
Owner

Indices in output selectors and in future parenthesis #5, brace #5, dot-numeric indexing #2 at minimum should support comma-delimited list of numbers and a colon syntax :.

This issue proposes extending the functionality across these to include end. A basic algebraic system would be vastly helpful in combination with #51:

<1:end>
<2:2:end>
<1:end-1>
<2:(end-1)/2>
<2:floor((end-1)/2)>
<2:ceil((end-1)/2)>
<2:round((end-1)/2)>

Parenthesis grouping will be necessary if multiplication and division is supported.

If division is supported, it would be helpful to support integer conversion functions like floor, ceil, round.

It is unclear whether fractional numbers should be supported, such as 0.75*end.

Separating out the parser for expressions like this would help with modularity and code reuse.

Indices in output selectors and in future parenthesis #5, brace #5, dot-numeric indexing #2 at minimum should support comma-delimited list of numbers and a colon syntax `:`. This issue proposes extending the functionality across these to include `end`. A basic algebraic system would be vastly helpful in combination with #51: ```matlab <1:end> <2:2:end> <1:end-1> <2:(end-1)/2> <2:floor((end-1)/2)> <2:ceil((end-1)/2)> <2:round((end-1)/2)> ``` Parenthesis grouping will be necessary if multiplication and division is supported. If division is supported, it would be helpful to support integer conversion functions like `floor`, `ceil`, `round`. It is unclear whether fractional numbers should be supported, such as `0.75*end`. Separating out the parser for expressions like this would help with modularity and code reuse.
UserCurt added this to the Someday milestone 2026-08-02 09:59:14 +00:00
Sign in to join this conversation.
No description provided.