Simulation Debugger - Specifying an array range of elements..

Moderator: Benj

Post Reply
medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Simulation Debugger - Specifying an array range of elements..

Post by medelec35 »

I have an array that has 115 elements.
I'm trying just to show a small range e.g ScheduledSetTimes [48]-[52]
Tried ScheduledSetTimes [48]-[52] & ScheduledSetTimes [48],[52]
Showing a single element works e.g ScheduledSetTimes [48]
What is the correct syntax for a range please?
I can manually add multiple single elements, but if require a range of 30 for example can be a pain.
Martin

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Simulation Debugger - Specifying an array range of elements..

Post by Benj »

Hi Martin,

I don't think there's currently a nice way of doing this rather than showing the entire array or a single element.

I believe in Matlab you would do something like this ScheduledSetTimes [48..52]

We can certainly add it to the list to look into in the future.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Simulation Debugger - Specifying an array range of elements..

Post by medelec35 »

Hi Ben,
Benj wrote:I believe in Matlab you would do something like this ScheduledSetTimes [48..52]
That would be great if it can be implemented?
The issue I'm currently facing is with 112 elements, its impossible to see all the values as it truncated after 64 elements:
Array Range.png
(35.54 KiB) Downloaded 1452 times
As the function is not already available I have move topic to requested section.
Martin

Post Reply